1D0-735 CIW JavaScript Specialist

Loading demo links...

Showing 4–6 of 10 questions

Question 4

Jaime needs to write a script to remove all the non-digit characters from a phone number so that all that remains are the numbers She knows that she will need to use a regular expression to search for non-digit characters and can use a method to remove all the non-digit characters. Which code should she use?

A)

B)

C)

D)

Select an option, then click Submit answer.

  • Option A

  • Option B

  • Option C

  • Option D

Question 5

Consider the following code:

What change should be made to ensure that it correctly displays the value of name in all uppercase letters?

Select an option, then click Submit answer.

  • Line 2 should be changed to name = name . toUpperCase () ;

  • Line 2 should be changed to name .prototype . toUpperCase () ;

  • Line 3 should be changed to document. write (NAME) :

  • Line 1 should be changed to var name = new sting("Jaccb");

Question 6

Consider this source code:

Giam needs to write a script to access the first element in the source code. What code should he use?

Select an option, then click Submit answer.

  • var first = document .getElementById(“condiments1”) [1];

  • var first = document .getElementById(“input”);

  • var first = document .getElementById(“condiments”) [0];

  • var first = document .getElementByIdTagName (“input”) [1]