New to JavaScript - Help


Hi guys. Just like you, I am a self taught HTML and CSS student and currently learning about javascript. Can someone kindly point out where my error in question 3 is.

Line 37:
Change this:
name.length to let length = name.length;

Tried that, still not working. Tried const length = name.length; stll didn’t work.

Hi. I moved your question to a new thread. Please create threads for questions. Happy coding :slight_smile:

That is really poorly worded, I’m not even sure what they want. Maybe this?

const length = str.length;

Do you remove quotes around str ?

function exerciseThree(str){
	// str is the string you'll pass when calling the function
	return  str.length;
}

// Calling the function
exerciseThree("Example Name");



image