Posts

Showing posts from January, 2019

Front End Development Roadmaps

Image

Difference between jQuery parent(), parents() and closest() functions

closest()  selects the first element that matches the selector, up from the DOM tree. Begins from the current element and travels up. parent()  selects one element up (single level up) the DOM tree. parents()  method is similar to  parent()  but selects all the matching elements up the DOM tree. Begins from the parent element and travels up.

What is the difference between less and Sass ?

Syntactically Awesome Stylesheets (Sass) and Leaner CSS (LESS) are both CSS preprocessors.  They are special stylesheet extensions that make designing easier and more efficient. Both Sass and LESS compile into CSS stylesheets so that browsers can read them, which is a necessary step because modern browsers cannot read .sass or .less file types. If you plan on being in the world of web development, it’s a good idea to be well-versed in one of the two preprocessors—or both . When it comes down to it, both are similar. They make writing CSS simpler, more object-oriented, and a more enjoyable experience. Nevertheless, there are a few key differences. Five of them are listed here. 1 Sass Is in Ruby. LESS Is in JavaScript 2 Sass Has Compass, LESS Has Preboot 3 To Assign Variables: Sass Uses $; LESS Uses @ 4 LESS Has More User-Friendly Documentation Than Sass 5 LESS Has Better Error Messages Than Sass Personally, I’m using SASS and Enjoying it.