log2 function

The log2 function output a string with 1 substituion to the web console.

Example


#[wasm_bindgen(start)]
pub fn main() -> Result<(), JsValue> {
     web_sys::console::log_2(&"%s Hello World".into(),&"John".into());
     Ok(())
}
                

Syntax


                pub fn log_2(data_1: &JsValue, data_2: &JsValue)    
           

features/dependencies

Source Code
  • web-sys_console_log.zip
  • GitHub Source