Good afternoon campers!
I’m about 2-3 hours into the Build a JavaScript Calculator project, and I was hoping to get some insights from people that have completed the challenge.
I’m slowly making progress on the logic for the actual calculation of user-inputted numbers. I’m already over 140 lines of JavaScript and can see this will keep growing. If I used the built in eval()
function, I could dramatically cut down on my program’s size (and have it working in a few hours). Sounds like a good move!
But I’ve been looking around, and eval()
seems to be universally frowned upon online (and in You Don’t Know JavaScript).
Did you use eval()
in your calculator project?