Home / Interview / Less :: General Questions

Interview :: Less

11) What are the color channel functions in Less?

In Less, color channel functions are in-built functions used to set a value about a channel according to the color definition. The HSL colors consist of hue, saturation and lightness channel and the RGB colors consist of a red, green and blue channel.

12) What is the use of data URI (Uniform Resource Identifier) in LESS?

With the help of Data URI, an image can be embedded directly in the stylesheet.

13) What does the "Source Map Less Inline" option represent?

The "Source Map Less Inline" option represents that all the CSS files must be included into the source map.

14) What is the difference between Less and SASS?
Less Sass
Less is coded in JavaScript. SASS is coded in ruby.
It is processed on the client side It is processed at the client side.
Variables are declared with the @ symbol. Variables are declared with the $ symbol.
For mixing, it uses Less Mixins. For mixing, it uses Compass.
15) How is Less is similar to Sass?

Following are the similarities between Less and Sass:

  • Namespaces are similar in both.
  • Color functions are identical in both.
  • Nesting capabilities are identical in both.
  • JavaScript evaluations are identical in both.
16) What is &combinator in Less?

In LESS, &combinator is used to combine the nested selector with the parent selector.

17) Does Less support operations?

Yes, Less supports various arithmetic operations such +,? , *, / that can be operated on any color or variable.

18) What is the use of Escaping in Less?

The escaping is used when there is a requirement to execute CSS file with invalid syntax.

19) Are there any alternatives that can use in place of Less?

Yes, there are various other alternatives can be used in place of Less such as SCSS, stylus.

20) How can you invoke the compiler via command line in Less?

To invoke the compiler follow the below command :

  1. $ Lessc styles.Less