- select language

Hi guys, I am new to coding (Barely a week old). I have started learning Javascript and currently unable to get the answer to question 3 on the screenshot above. Can anyone kindly point out where I’m going wrong. Thanks in advance.

you already have the variable str, it is the function parameter and it has value of a string. you need to create a variable called length and assign the length of that string to that variable

Thank you so much. You opened my mind to where I was going wrong. I really appreciate it.