StringOperator-3

 

String Operator "+" return 10, 55 and Hello5 based on values provided.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <p id="sample"></p> <script> var x = 5 + 5; var y = "5" + 5; var z = "Hello" + 5; document.getElementById("sample").innerHTML = x + "<br>" + y + "<br>" + z; </script> </body> </html>
Output