Function log

Source
pub fn log<T>(string: T)
where T: AsRef<str>,
Expand description

Prints the given string using the console.log() JS function.

§Arguments

  • string - The string to print.

§Examples

log("Hello, world!");
log(format!("0.1 + 0.2 = {}", 0.1 + 0.2));