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

351
Views
Prevent the variable's value from being written to the `body' of the page

When we write the code below in the Firefox web browser bookmark, the result 3 is written to the body of the current page:

javascript:
var x = 2;
x += 1;

To avoid this, it is possible to add var before a new variable called y that takes the value of x:

javascript:
var x = 2;
var y = x += 1;

My code has dozens of variables and it wouldn't be practical to have to create other variables just to avoid the problem.

How can I prevent variable values from being written to the document.body of the page?

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!