jQuery Shorthand

by Daniel Brodbeck

JavaScript

// Funktion jQuery nimmt einen Parameter: CSS Selekto
jQuery(document).ready(function(){
	alert('hello world');
});

/* $ als Shorthand für jQuery
$(document).ready(function(){
	alert('hello world');
}); */

/* $(function) als Shorthand für $(document).read$(function(){})
/*$(function(){
	alert('hello World');
});*/

/* Shortest Arrow Function
$(()=>{
	alert('hello World');
}); */