Closed T0raT closed 1 year ago
Thanks for this. Using eval()
is to make it easier to create the calculator project. I'll add a note in the exercises that it's only for learning purposes and to avoid using it in real world projects.
Thanks for this. Using
eval()
is to make it easier to create the calculator project. I'll add a note in the exercises that it's only for learning purposes and to avoid using it in real world projects.
Thanks for addressing the issue Simon!
A quick search on mdn web docs tells me eval() is a huge security risk and is slower than the alternatives.
I understand for beginners' sake this might be an easier way to make a calculator. But if the aim is to go from beginner to pro, why isn't a warning given to the students regarding eval()'s security risk, or even discussed at all. I still see eval() being in the course solution up to lesson 10.
Why is this?