The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › JavaScript Text
Hi!
I was just wondering if there was a better way to handle text in JS. Like if I were to validate a form and have an alert box like this.
alert(“The information you’ve entered is incorrect, please try again”);
Is there a simple way to store the text so it becomes maybe something like this.
alert(wrongInfo);