JavaScript Strings
<!DOCTYPE html> <html> <body> <h2>Case and whitespace</h2> <script> let raw = " Hello World "; console.log(raw.trim()); // "Hello World" console.log(raw.trim().toUpperCase()); // "HELLO WORLD" console.log("HELLO".toLowerCase()); // "hello" // The original is unchanged console.log(raw); // " Hello World " </script> </body> </html>