Please tell me, these designs work equally?

Please tell me, these designs work equally?

$( document ).ready( function() {
 var $=window.jQuery;
 // code
});


window.jQuery( document ).ready( function( $ ) {
 // code
});
July 2nd 19 at 17:05
1 answer
July 2nd 19 at 17:07
Solution
window.jQuery( document ).ready( function( $ ) {
alert("2");
});

$(document).ready( function() {
 var $=window.jQuery;
alert("1");
});

// 2, 1


$(document).ready( function() {
 var $=window.jQuery;
alert("1");
});

window.jQuery( document ).ready( function( $ ) {
alert("2");
});

// 1, 2


We conclude - the design is identical

Find more questions by tags jQuery