My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Does anyone here freeze up at seeing the variable "n" in JavaScript programs?

Amy Morris-Clark's photo
Amy Morris-Clark
·Nov 6, 2016

Has anyone else ever experienced this? I've been learning javascript and using variables with all different sorts of names, but when I went to HackerRank and other places, I see that the variable being used is called "n". I don't know about anyone else, but that looks way too much like algebra to me, which induced a sort of panic reaction in me.

I was never very good at math but I've read in several places that you really only use basic math in coding anyway. Math is the reason I didn't minor in Computer Science like I wanted to over 10 years ago when I was in college. Back then, I just assumed that computer science included lots of math and I wouldn't do well so I didn't bother. Now I'm kicking myself for that decision.

Regardless, does anyone else freeze up at seeing the variable "n" being solved for? It takes me back to those horrible high school math classes. Why is it done this way?