web_sys::console::log function

Example

The log function output a message to the web console.


pub fn console_log() {
     let array = js_sys::Array::new();
     array.push(&"Hello Console Log".into());
     web_sys::console::log(&array);
}
                

Function


                pub fn log(data: &Array)
           

features/dependencies

Source Code