Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
/* Get Programming with JavaScript
 * Listing 2.03
 * Using a variable
 */
var score;
score = 100;
console.log(score);
/* Further Adventures
 *
 * 1) Change the value assigned to score.
 *    Run the program again.
 *
 * 2) Declare a second variable, maybe score2.
 *
 * 3) Assign your variable a value.
 *
 * 4) Use console.log to display your variable on the console.
 *
 */
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
jrlarsenpro
0viewers