You need to sign in to do that
Don't have an account?
Navneeth Raj
Why we use var name in script tag?
What is the usage of var name in script, i mean like below?
<apex:page controller="RemoteExample" id="page">
<script>
var name;
</script>
</apex:page>
<apex:page controller="RemoteExample" id="page">
<script>
var name;
</script>
</apex:page>
var is variable in javascript. Like integer, string.
You can store any type of data in Var
eg: var name = 'Test';
var numb = 10;
http://www.w3schools.com/js/js_variables.asp
More information in the above link.
Thanks.
Please check below link for more information.
http://www.w3schools.com/js/js_variables.asp
for example :-
<script>
var x = 5;
var y = 6;
var z = x + y;
document.getElementById("demo").innerHTML = z;
</script>
Please let us know if this will help you,
Thanks,
Amit Chaudhary