Javascript examples for String:Quiz
Concatenate the two strings to display "Hello World!".
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var str1 = "Hello "; var str2 = "World!"; document.getElementById("demo").innerHTML = str1 + str2; </script>//w ww .j a v a 2 s . co m </body> </html>