#Not sure what I'm doing wrong here
6 messages · Page 1 of 1 (latest)
You used one = instead of two or three. One is for assignment. Two is for checking loose equality. Three is for checking strict equality.
This is what I have changed and still isn't working
function isEmpty(arr) {
let arr = [];
if (arr. length == 0){
return true;}
else {
return false};
}
it doesn't seem like that is the problem
Remove the "let arr=[]" from this code. You are creating a new variable with the same name as the parameter and ignoring the value of the parameter. That was not in your original code. I don't know why you added it.