Home »
MCQs »
JavaScript MCQs
What is the output of the following JavaScript code? | Question 6
42. What will be the output of the following JavaScript code?
<script>
var x = 12.34;
document.getElementById("test").innerHTML = typeof(x);
</script>
- int
- float
- long
- number
Answer: D) number
Explanation:
The output of the following JavaScript code is number.