Javascript examples for String:Quiz
Assign the string "Hello World!" to the variable txt.
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var txt = "Hello World!"; document.getElementById("demo").innerHTML = txt; </script>//from w ww . ja v a 2 s . com </body> </html>