Question 10/28. i am not getting the correct result


#1
var string2 = "i am fine";
var string3 = "yeeaah of course i think so";
"string".length;
"string2".length;
"how are you".length;``

In this question, my result is 11. but why is the length of the other two strings not executed?


#2

Could you elaborate more? Your question is not clear.


#3

actually, i am getting the result as 11 for the above question. but why am i not getting the length of the other two strings
"string".length;
"string2".length;


#4

I think it just displays the last thing it did, whether you logged it or not. If you want to see every answer, I would recommend console.log("how are you".length);

Also, are you trying to calculate the lengths of your variables, or the lengths of the string "string" and so on?
To calculate the length of "yeeaah of course i think so" put string3.length
To calculate the length of "string3" put "string3".length