I cannot get passed this chapter because if I enter the code it says the following error:
Cannot read property ‘1’ of null
In this exercise:
https://www.codecademy.com/en/courses/learn-sass/lessons/functions-and-operations/exercises/each-loops?action=lesson_resume&link_content_target=interstitial_lesson
Can someone help me. If I press get the code it gives the error something is wrong in the top left corner.
This is my code:
$list: (orange, purple, teal);
@each $item in $list {
.#{item} {
background: $item;
}
}
lpq66
#2
$list: (orange, purple, teal);
@each $item in $list {
.#{item} {
background: $item;
}
}
you just missed $. ( .#{$item} )
system
closed
#3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.