Tell us what’s happening:
I am having problems understanding the lesson because, I am finding the lesson too difficult. Can someone give me a guide our a few tips how I can understand this? I already triied going back the previouse lessons for better understanding and w3schools but this one keeps being to difficult for me.
Your code so far
function testSize(num) {
// Only change code below this line
if ((num) <5) {
return = ("Tiny")
}
if ((num) < 10) {
return = ("Small")
}
if ((num) < 15) {
return = ("Medium")
}
if ((num) < 20) {
return = ("Large")
}
if ((num) >= 20) {
return = ("Huge")
}
return "Change Me";
// Only change code above this line
}
// Change this value to test
testSize(7);
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.1 Safari/605.1.15
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/chaining-if-else-statements