February 4th 2018
Hello! At the ES6 course by Wes Bos I learned about some interesting new string methods, like // .startsWith(), .endsWith() .includes() and .repeat().
And at the Web Development Bootcamp I started to learn about jQuery, which is a very useful JavaScript library. To select elements with jQuery you can use $().
$("selectorGoesHere")
The .css() is a method to style elements and you can use .css(property, value) - define an object. You can also style multiple elements at once. We use methods to retrieve elements from the DOM and also set them.
Some useful jQuery methods include:
attr() is used to access or set the attribute
val() is to retrieve or set the value of any input
A lot what we can do quickly with jQuery we would have to use loops in vanilla JS.
Cheers!