Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

152
Views
How to write a JS function as a placeholder in a textarea correctly?

I'm trying to write a JS function as a placeholder, but the browser thinks it's a JS instead of a simple placeholder for textarea.

How could this be done right?

<textarea placeholder="Paste some code..

while (!fileExists('properSolution.js') {
    var pureNS1 = unchanged; // no NS2 parts added manually
    var yourScript = the script you're going to convert

    if (yourScript == pureNS1) {
        clickButtonBelow('NS1 TO NS2');
    }
    else {
        clickButtonBelow('NS2 TO NS1'); //Prevents duplicates
        clickButtonBelow('NS1 TO NS2');
    }
    sleep(2022);
}"></textarea>

This JS is supposed to serve as a note only/placeholder.

Thank you in advance!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!