JavaScript

Tuesday April 8, 2025
updated: April 10, 2002

 
Home
Getting Started
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Resources
Credits

 

 


Check Your Understanding: Lesson Four

1. If x=2, y=4, and z=5 then the value of total when, total=(X+Y*Z)/x is:
a. null
b. 20
c. 15
d. 11

2. When x= hello and y=world, to Concatenate the string x + y means:

a. To arrange the strings x and y into a chained list
b. document.write(x + y) would write "hello world"
c. both and b
d. none of the above
3. If the string variables x=10 and y=55, then the code: document.write(eval(x+y)) will display:

a. 1055
b. 65
c. x + y
d. nothing because quotation marks are not used


© 2002 Tracy Johnson