CounterOne
DiggBlinkRedditDeliciousTechnorati
question by Jackson | Hard
Varibles are an essential part of any computer program. One of key skill for any programmer is to predict what value a variable will assume at key ponits in the programe.Here is the small Javascript code that could be included.
r<SCRIPT LANGUAGE="Javascript"> // LINE 1
var counterOne; // LINE 2
counterOne = 5 // LINE 3
counter = counter -10; // LINE 4
document.write(counterTow) // LINE 5
</SCRIPT> // LINE 6
Questions
a) What is the value of counterOne on line 2?
b) What value does counterOne have after line 3?
c) What value does counterOne have after line 4?
d) What is the value of counter Two in line 5
Post reply
Subscriptions
Got a Javascript Question?
Just Sign Up and ask the top Javascript experts!
|