Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var y;     // variable declaration
var x = 3; // variable declaration and assignment
// test if something is an expression by putting it in a console.log
// there will be no errors if it is an expression
console.log(x);
// remember that these are expressions:
/*
raw data
variables
function calls
calculations
function declarations (less important)
*/
    
// remember that these are statements
/*
function calls
function declarations 
variable declarations
variable assignments
if statements
loops
*/
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers