log1 function

The log1 function output a string to the web console.

Example


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

Syntax


               pub fn log_1(data_1: &JsValue)
           

features/dependencies

Source Code
  • web-sys_console_log.zip
  • GitHub Source