JS Newbie..Help
SeanChadwick (1)

function exerciseThree(str){
// In this exercise, you will be given a variable, it will be called: str
// On the next line create a variable called 'length' and using the length property assign the new variable to the length of str

// Please write your answer in the line above.
return length;

Can somebody help me please and thx you

You are viewing a single comment. View All
theangryepicbanana (1624)

@SeanChadwick well if you do var length = 'Something', that doesn't actually get the length of str. str is a variable that currently equals a string. knowing that, how would you just get the length of str?