Sass: Use @each to Map Over Items in a List

Sass: Use @each to Map Over Items in a List


whats wrong with this new exercises, can sb check everything is ok?, on screen is all good but chellenge not good


If you paste the actual code instead of a screen shot, I can test out your code. It looks correct and if that is the case, you may just need to refresh the page and re run the tests. Also, make sure you are not using Edge or Internet Explorer, because those browsers do not work well with the new curriculum.

<style type='text/sass'>
  $colors:(color1:blue,color2: black,color3: red);
  @each $key, $color in $colors {
    .#{$color}-bg {background-color:$color};
  div {
    height: 200px;
    width: 200px;
<div class="blue-bg"></div>
<div class="black-bg"></div>
<div class="red-bg"></div> 

i using Mozilla and i try to do it on Chrom browser, dont work, pls help