Kim Thu Đoàn
New member
What will be the output of the following JavaScript code?
A. 0
B. -8
C. -200
D. 20
Code:
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML =
Math.min(0, 150, 30, 20, -8, -200);
</script>
B. -8
C. -200
D. 20