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>jQuery Callback Example</title>
</head>
<body>
</body>
</html>
 
// jQuery Callback Example
// $(".header-section").on("click", function() {
//     console.log("Header clicked!");
// })
function on(event, callback) {
  callback(event);
}
function cb(event) {
  console.log("Header " + event + "ed!")
}
on("click", cb);
Output 300px

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

Dismiss x
public
Bin info
codexmonpro
0viewers