Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[add your bin description]" />
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  
</body>
</html>
 
/*
var chaine = 'salut';
console.log( typeof(chaine) ); // string
var entier = 20;
console.log( typeof(entier) ); // number
var date = new Date();
console.log( typeof(date) );   // object
var array = ['lion', 'aigle', 'girafe'];
console.log( typeof(array) );  // object
console.log( typeof(variableInexistante) ); // undefined
*/
if( typeof(variableInexistante) == 'undefined' ){
  alert("variableInexistante n'existe pas !");
} else {
  alert("variableInexistante = " + variableInexistante);
}
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers