<!DOCTYPE html> <html> <body> <h1>Demo: JavaScript String</h1> <p id="p1"></p> <p id="p2"></p> <script> var str1 = "WelCome to aimtocode"; var str2 = 'Keep Learning'; document.getElementById("p1").innerHTML = str1; document.getElementById("p2").innerHTML = str2; </script> </body> </html>