Q. What is the output of the following JavaScript code?

Code:
<script>
	var name = "Alex" + " " + "Alvin";
	document.getElementById("demo").innerHTML = name;
</script>
  • (A) Alex Alvin
  • (B) AlexAlvin
  • (C) TypeError
  • (D) ValueError
πŸ’¬ Discuss
βœ… Correct Answer: (A) Alex Alvin

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
246
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
93%
Success Rate