ANGULAR4

  1. How do you create a function in JavaScript?
  1. function:myFunction()
  2. function = myFunction()
  3. function myFunction()
  4. None of the above

>>>>>>>>>>>><<<<<<<<<<<<<

  1. What is the correct way to write a JavaScript array?
  1. var colors = "red", "green", "blue"
  2. var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
  3. var colors = (1:"red", 2:"green", 3:"blue")
  4. var colors = ["red", "green", "blue"]

 >>>>>>>>>>>>><<<<<<<<<<<<<

  1. How do you round the number 7.25, to the nearest integer?
  1. round(7.25)
  2. Math.rnd(7.25)
  3. Math.round(7.25)
  4. rnd(7.25)

>>>>>>>>>>>>>><<<<<<<<<<<<<<<

  1. 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?
  1. concat()
  2. match()
  3. replace()
  4. search()

>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<

  1. Which of the following is a valid type of function javascript supports?
  1. named function
  2. anonymous function
  3. Both of the above.
  4. None of the above.

>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<

  1. 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?
  1. push()
  2. join()
  3. pop()
  4. map()

 >>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<

  1. Which of the following function of Array object removes the first element from an array and returns that element?
  1. reverse()
  2. shift()
  3. slice()
  4. some()

>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<

  1. 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?
  1. concat()
  2. every()
  3. filter()
  4. some()

 >>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<

  1. In HTML, onblur and onfocus are:
  1. HTML elements
  2. Style attributes
  3. Event attributes
  4. Both of the above

>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<

  1. Which is the correct CSS syntax?
  1. {body;color:black;}
  2. body {color: black;}
  3. body:color=black;
  4. {body:color=black;}