“Why did you do that, and not make it easier for yourself?”
“Whats the difference between the two?”
“Is that a one JQuery function or a regular JS function?”
“Why do we drive in a parkway and park in a drive way?”
Those were the questions I asked myself.
The last time I was physically present in class, we were introduced to JQuery library and then the quarantine happened. Like many other institutions, school was put on pause until further notice. As a result, I was left confused with all of these questions, and I could not properly distinguish the difference between these two concepts for the next 3 weeks. Be that as it may, this break turned out to be a blessing in disguise.
“Why was it a blessing in disguise?”
Did you know you can do this using Vanilla JS?
You can actually get your computer to speak to you with a simple code:
const sayOutLoud = new SpeechSynthesisUtterance(‘hello, Miguel’)
I was shocked when my computer greeted me when the page loaded. Try it out, turn up your volume.
Also, you don’t need JQuery to select elements in the DOM, as an additional option:
This will allows you to go into the DOM (document), scan for all selectors (using querySelectorAll) with the class name of “.exampleClass”. This code will link the two together. You can also select elements by its ID, tags, etc. The same as you would JQuery. This is just another method to use incase you didn’t want to/know how to use their library.
“So now what?”
- Miguel Cabrera