pub fn warn<T>(string: T)where T: AsRef<str>,
Prints the given string using the console.warn() JS function.
console.warn()
string
warn("Hello, world!"); warn(format!("0.1 + 0.2 = {}", 0.1 + 0.2));