It's not working and I am going insane (Please help me)

Tell us what’s happening:
I am learning how to code, I am currently in school. I am trying to make it work, but i doesn’t and it has not been working for several hours. It feels like I am going insane. I dont know what to do, I am losing myself. I am gonna stab someone. My techer wont help me. His family will suffer.

Anyways if anyone could help me, I would appreciate it a bunch :slight_smile:

Your code so far


// Setup
var lastNameLength = 0;
var lastName = "Lovelace".length;

// Only change code below this line

lastNameLength = lastName.length;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36

Challenge: Find the Length of a String

Link to the challenge:

1 Like

// Setup

var lastNameLength = 0;

var lastName = “Lovelace”;

// Only change code below this line

lastNameLength = lastName.length;

There is error in your setup, on the second line you declared variable end assigned it to value of length of “Lovelace”. Check the exercise you are doing!

1 Like

Thank you, I am starting to calm down. I was just about to brutally assult my teacher in front of my class due to my severe mental illness. I felt like I was going to die. Thanks for helping! :slight_smile:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.