jQuery( document ).ready(function($) {
var $email = 'grep@answer.com';
console.log($email);
});
(function( $ ) {
"use strict";
$(function() {
//Your code here
});
}(jQuery));
<script src='jquery.js'></script>
if (typeof $ == 'undefined') {
var $ = jQuery;
}
(function($){
$(document).ready(function(){
// write code here
});
// or also you can write jquery code like this
jQuery(document).ready(function(){
// write code here
});
})(jQuery);
(function ($) {
$(document).
}(jQuery));