Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

352
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda