Array Play and jQuery

Manipulating arrays with Javascript and using jQuery. How would you do javascript document.getElementById(id); with jQuery ? $.(‘#id’); and for document.getElementByClass(class) just use $.(‘.class’); If we had an array and you want to reverse the order you can use the reverse method. Example as follows.

Scope Javascript

How do you explain scope. C’mon man It’s like scope, you know. Try to explain scope Wikipedia has a good explanation. https://en.wikipedia.org/wiki/Scope_(computer_science) OK, scope in javascript W3C explains scope. https://www.w3schools.com/js/js_scope.asp ECMAScript scope is the set of variables, objects, and functions you have access to. Global variables have global scope and local variables have local scope.  All global variables […]