THE ZEPINT NETWORK

programmer assist

Javascript Javascript XML Feeds

Javascript Questions Javascript Solutions Javascript Articles

JavaScript, in its more modern form, is an object-based scripting programming language based on the concept of prototypes. The language is best known for its use in websites, but is also used to enable scripting access to objects embedded in other applications. It was originally developed by Brendan Eich of Netscape Communications Corporation under the name Mocha, then LiveScript, and finally renamed to JavaScript.

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

Re: CounterOne

answer by Srirangan

a) Null.
b) 5
c) 5
d) -5

Post reply Subscriptions

Got a Javascript Question?

Just Sign Up and ask the top Javascript experts!

Search via Google

User Login

Email Address

Password

Javascript Experts

Rank Expert Points
#1 Bejaan 500
#2 Srirangan 150
This a list of the Top Javascript experts, how many points do you have?

Leading Experts

Rank Expert Points
#1 frankzzsword 4600
#2 Bejaan 2900
#3 csfreak 1100
#4 Anurag 700
#5 keyvez 700
#6 nnarasimha 600
#7 Nakata 600
#8 martinig 600
#9 mastercomputers 400
#10 Huntress 150
#11 Adkron 150
#12 Yogesh 100
#13 lexxwern 100
#14 Mustan Khan 100
#15 poizn 100
This is a list of overall best performing experts, how many points do you have?