Hello, i have trouble with this rule:
squaredIntegers should be [16, 1764, 36]
"use strict"; const realNumberArray = [ 4, 5.6, -9.8, 3.14, 42, 6, 8.34 ]; let squaredIntegers = realNumberArray.filter((squareSupZero) => squareSupZero >= 0 ); squaredIntegers = realNumberArray.map((squareSupZero) => squareSupZero >=0 ); console.log( squaredIntegers );
It’s maybe a bug with the “const”… I tried changing it to let and even var but i have the same error.
Have a nice day.
ps: if you think it would be better to go to the chat room and ask, tell me !