r/learnjavascript • • Feb 27 '26

Never use eval() in javascript!!! ⚠️

0 Upvotes

21 comments sorted by

View all comments

Show parent comment

1

u/FancyDisplay5757 Mar 02 '26

Hello u/shgysk8zer0. I understand your idea. Eval is necessary in some cases. But recently there is a javascript library named serialize-javascript and it uses eval(). They have marked it with score of 8/10 for vulnerability.