Hello all!
I am following the web development tree and I am currently on recreating the Lodash Library Project. I will admit that my Javascript is not my strong suit but I am really baffled with this one as I referred to the video and have exactly the same code, and it still isn’t working.
Here is my code:
const _ ={
clamp(number, lower, upper){
var lowerClampedValue = Math.max(number, lower);
var clampedValue = Math.min(lowerClampedValue, upper);
return clampedValue;
}
};
// Do not write or modify code below this line.
module.exports = _;
Which is exactly the same as in the video and formatted the same, except the colours in my version are different to that in the video.
When I run it following the video instructions it returns:
What am I missing here? I am totally clueless! Any help would be much appreciated.
Best wishes,
Merry