home

Javascript Variables Tutorial


Variables


 /*
  variable is temporary place to store values.
  variables are defines using keyword var
  variable values can be used by calling the name of variable
 */
 var myname = "Shahid"
 document.write(myname)
      <script type="text/javascript">
/*
variable is temporary place to store values.
variables are defines using keyword var
variable values can be used by calling the name of variable
*/
var myname = "Shahid"
document.write(myname)
</script>


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Copyright © 2014 by Cramerz.com.