Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JavaScript Text

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #152181
    han003
    Participant

    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);

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.