How to execute jquery using eval function
function hello(){
console.log("hello");
}
$(function() {
hello();
})();
I have above code as String value and passing to java script eval function.
It's giving TypeError: $(...) is not a function. How to load Jquery dynamically and execute above code to print "hello" using eval/Function or $.globalEval.