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

217
Vistas
Running a Javacript code on an HTML Page?

This is a ion exchange calculation for softener resin linked to my job. I've run this code in Javacript and displayed it on the console but where do you begin to run that on a webpage. I know how to link a JS file using the script on a HTML page but how does the code get executed. I'm a bit confused with getELement ID or querySelectors so i was hoping to get some pointers of where i can start to look. Apologies for the ametuer question

  const totalCapacity = function (resinVolume, hardness) {
  let exchange = 50;
  return (resinVolume * exchange) / hardness;
};

let softener = totalCapacity(50, 200);
console.log(softener + ' m3');
about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

This is an immediately invoked function:

(const totalCapacity = function (resinVolume, hardness) {
  let exchange = 50;
  return (resinVolume * exchange) / hardness;
};
let softener = totalCapacity(50, 200);
console.log(softener + ' m3');)();
about 4 years ago · Juan Pablo Isaza Denunciar

0

<script language = "JavaScript">
  function multiply() {
    with(document.multiplication) {
      result.value=x.value * y.value;
    }
  }
</script>

<form name="multiplication">
  <input type="text" name="x" size="5">
  <input type="text" name="y" size="5">
  <input type="text" name="result" size="5"><br>
<input type="button" value="Multiply" onClick="multiply()">

You can get some idea from the above example.

about 4 years ago · Juan Pablo Isaza Denunciar
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