web_sys::console::log2 function

Example

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


pub fn console_log2() {
     web_sys::console::log_2(&"%s : Hello World".into(),&"John".into());
}
                                    

Function


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

features/dependencies

Source Code