Read the following script what is 'function' in this code:
function myFunction(){ alert("you have successfully defined the function!");}
keyword
Identifier
Operator
None of these
Declares a variable
Defines a loop
Creates a function
Represents a conditional statement
function myFunction() {}
def myFunction() {}
func myFunction() {}
Function : myFunction() {}
wait()
pause()
setTimeout()
setInterval()
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"]
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
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
document.getelementbyid()
document.getElementbyid()
document.getElementByid()
document.getElementById()
shift()
pop()
remove()
delete()
push()
unshift()
let and const are block-scoped, while var is function-scoped
var and let are block-scoped, while const is function-scoped
const and var are block-scoped, while let is function-scoped
They are all function-scoped
Both a and b are equal in value, type and reference address
Both a and b are equal in value
Both a and b are equal in value and type
Number()
parseFloat()
parseInt()
All of the above
function:myFunction()
function myFunction()
function = myFunction()
function.myFunction()
ceil(x, y)
Math.max(x, y)
top(x, y)
Math.ceil(x, y)
Checks for equality and ignores the data type
Checks for equality, including data type
Assigns a value to a variable
Compares two values and returns true if they are not equal
Converts a string to an integer
Parses a JSON object
Finds the position of a substring in a string
Calculates the square root of a number
onclick
onmousescroller
onmouseover
onmousemove
upload
load
onmouseout
onclickmouse
onmouseup