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>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script>
  // IIFE - Immediately Invoked Function Expression
  (function($, window, document) {
    // The $ is now locally scoped 
   // Listen for the jQuery ready event on the document
   $(function() {
     // The DOM is ready!
     console.log('The DOM is ready!');
   });
   // The rest of code goes here!
    console.log('The DOM may not be ready!');
  }(window.jQuery, window, document));
  </script>  
</body>
</html>
Output

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

Dismiss x
public
Bin info
anonymouspro
0viewers