Good time. I started to parse the code of my site and found a couple of js files using eval. All operations use this design.
textJoin=rezultAjax; answer=eval('('+textJoin+')'); if (answer.error.code==1) { alert (answer.error.text); return; }
that is, an ajax request is sent (for example: feedback on the site) and the result is processed by this eval and, if the code is 1, then the request has passed with an error and an alert is sent.
question : in this case, are these evals in js dangerous? - If so, what exactly?