Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Convert a String to Lowercase Characters</title> </head> <body> <script> var str = "Hello World!"; var result = str.toLowerCase(); document.write(result); // Prints: hello world! </script> </body> </html>