Hello. So I'm making something like a calculator using PHP, but the code becomes ugly as I place checking and type conversions everywhere to make it safe. But now I've got another idea. I have a really low experience of
JS, but making some simple calculations with some logical operations can't be hard. But the problem is that I'm going to outpost some input data and the result on the screen.
The question would be. Is it safe (can someone hack my website using this (continue reading) to harm my website and/or its users) to allow writing the code on my website using that Javascript? Well, writing some security staff is pointless, I guess, because anyone can edit the code. And when you think about editing the code of the website, anyone, even I, can write any code on the website they are visiting, but it's not going to harm it as long as it's not saved in any database to be displayed by the server. The answer looks obvious, but, as I said earlier, my experience is really low on
JS (and I hate scripting languages which makes my experience on them even lower) and I just want to be one hundred and one percent sure about that.
P.S. The question doesn't look hard to me, waiting for the answer.