Sass @return Rules

You are Here:

Sass @return Rules

@return indicates the value to use as the result of calling a function.

Note: Sass has the following rules to follow.

  • Each @function must end with a @return.
  • @return is only allowed within a @function body.

Example

SASS TO CSS CONVERTER
@function myFunction($x){ $result: $x * 2; @return $result; } footer ul{ font-size: myFunction(8) * 1px; }

Syntax

@return returnValue;

Reminder

Hi Developers, we almost covered 99.1% of Sass Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in Sass.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author