DEV Community

loading...

Discussion on: Keeping Your Code Simple

Collapse
pwaivers profile image
Patrick Waivers

This code does not work. This line throws an error:

let lenX = str1.length;
Collapse
tiffany profile image
Tiffany White Author

I'll have to look at it. Like I said in another comment, I took the contents of a Twitter DM with a mentor and tried to piece together what he was saying. He offered some variables broken out of the main function so I was trying to infer from the bit I got. It's probably wrong and I felt that while writing it.