- How do you create a function in JavaScript?
- function:myFunction()
- function = myFunction()
- function myFunction()
- None of the above
>>>>>>>>>>>><<<<<<<<<<<<<
- What is the correct way to write a JavaScript array?
- var colors = "red", "green", "blue"
- var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
- var colors = (1:"red", 2:"green", 3:"blue")
- var colors = ["red", "green", "blue"]
>>>>>>>>>>>>><<<<<<<<<<<<<
- How do you round the number 7.25, to the nearest integer?
- round(7.25)
- Math.rnd(7.25)
- Math.round(7.25)
- rnd(7.25)
>>>>>>>>>>>>>><<<<<<<<<<<<<<<
- Which of the following function of String object is used to find a match between a regular expression and a string, and to replace the matched substring with a new substring?
- concat()
- match()
- replace()
- search()
>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<
- Which of the following is a valid type of function javascript supports?
- named function
- anonymous function
- Both of the above.
- None of the above.
>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<
- Which of the following function of Array object creates a new array with the results of calling a provided function on every element in this array?
- push()
- join()
- pop()
- map()
>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<
- Which of the following function of Array object removes the first element from an array and returns that element?
- reverse()
- shift()
- slice()
- some()
>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<
- Which of the following function of Array object creates a new array with all of the elements of this array for which the provided filtering function returns true?
- concat()
- every()
- filter()
- some()
>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<
- In HTML, onblur and onfocus are:
- HTML elements
- Style attributes
- Event attributes
- Both of the above
>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<
- Which is the correct CSS syntax?
- {body;color:black;}
- body {color: black;}
- body:color=black;
- {body:color=black;}