hi,can i use eval
function in js calculator project??? doing without eval
will kill me
1 Like
We’ve all considered this (many of us), but it is frowned upon for the purposes of this challenge.
Doing without eval is easier than you might think.
Hi. I think this challenge is more about using frontend frameworks than building a math expression parser. According to previous answers to this question using eval
is ok.
That being said, eval
should never be used in real projects. You can use Function
or a library like expr-eval
(npm, also available on codepen) instead.
ok thank u i will try without eval then
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.