JavaScript
Tuesday April 8, 2025updated: April 10, 2002
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
[Home] [Getting started] [resources] [Credits] [Lesson 1] [Lesson 2] [Lesson 3] [Lesson 4] [Lesson 5] [Lesson 6] [Lesson 7] [Lesson 8] © 2002 Tracy Johnson