typeerror is not a function but works in node js code example
Example: Uncaught TypeError is not a function JavaScript
jQuery(document).ready(function($){
// jQuery code is in here
});
jQuery(document).ready(function($){
// jQuery code is in here
});