(PCC)::[How-to-perform-Adding-strings-and-numbers-in-JavaScript]::[js]
<!DOCTYPE html> <html> <body> <h2>JavaScript Variables</h2> <p>The result of adding "5" + 2 + 3:</p> <p id="demo"></p> <script> x = "5" + 2 + 3; document.getElementById("demo").innerHTML = x; </script> </body> </html>
The result of adding "5" + 2 + 3: