Jump to content

Describing Vanilla JS in jQuery contents


Sinseiki

Recommended Posts

jQuery explanations in this site are so good.

I think comparing jQuery with Vanilla JS on jQuery pages can teach Javascript more efficiently.

 

For example, at this page,

https://www.w3schools.com/jquery/jquery_css.asp

Example

$("p").css("background-color", "yellow")

in Javascript

document.querySelector("p").style.backgroundColor = "yellow"

this can be added.

 

 

The reason I want this function is that I want to learn the JS algorithm of jQuery methods like slideDown() and animate().

How about adding description Vanilla JS on jQuery pages?

Edited by Sinseiki
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...