My Javascript adventures
Sunday, September 13, 2015
//Here is some code that helps you write code: helps the user define a variable in javascript.
var variablename = "number";
var varName = prompt("What would you like to name your variable?");
var varValue = prompt("What would you like to set as the value of your variable?");
alert("var " + varName + " = " + varValue + ";");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment