document.getelementbyid()
document.getElementbyid()
document.getElementByid()
document.getElementById()
What is the output of the following JavaScript code?
<script>var a;document.getElementByld("demo").innerHTML = a+1;</script>
0
undefined
1
NaN
var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
var colors = (1:"red", 2:"green", 3:"blue")
var colors = "red", "green", "blue"
var colors = ["red", "green", "blue"]
shift()
pop()
remove()
delete()
push()
unshift()
it is an ordered list of values
It is an ordered list of objects
It is an ordered list of string
It is an ordered list of functions
What will be the output of the following JavaScript code ?
<p id="demo"></p><script>var js = 5;js*=10;document.getElementByld("demo").innerHTML = js;</script>
10
15
5
50