Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Full Access CIW 1D0-435 Tutorials

Page: 4 / 9
Total 244 questions

CIW JavaScript Fundamentals exam Questions and Answers

Question 13

_________ is used to associate an object's name with the object's properties or methods.

Options:

A.

A property

B.

A function

C.

A statement

D.

Dot notation

Question 14

Consider the following Code:

<script>

var state = "";

var orderAmount = 50;

state = prompt("Which state do you live in?","");

if (state.toUpperCase() == "CA") {

alert("Your total owed is: " + (orderAmount * 1.0825));

} else {

alert("Your total owed is:" + orderAmount);

}

</script>

What will the alert method display if the user lives in Tennessee?

Options:

A.

1.0825 % of the order amount

B.

nothing

C.

The order amount only

D.

The order amount plus sales tax of 1.0825

Question 15

Regarding cookies: If the expires attribute is not used, when will the cookie expire?

Options:

A.

in 10 days

B.

in 3 days

C.

in 30 days

D.

at the end of the user's session with the Web application

Question 16

You can declare as many methods for your custom object as you want.

Options:

A.

False

B.

True

Page: 4 / 9
Total 244 questions