+1 vote
in HTML by
What is variable interpolation in Sass? Provide some examples.

1 Answer

0 votes
by

If you want to use variables inside a string, you will have to use a process called variable interpolation. To use it you will have to wrap your variables in #{}.

Consider:

$name: 'Gajendar';
$author: 'Author : $name'; // 'Author : $name'

$author: 'Author : #{$name}';
// 'Author : Gajendar'

Related questions

0 votes
asked Jun 27, 2020 in HTML by DavidAnderson
0 votes
asked Oct 23, 2019 in HTML by AdilsonLima
...