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

189
Views
Cómo calcular correctamente una variable dentro de un parámetro

El siguiente es el código javascript y estoy usando el navegador mozilla mientras alojo un localhost:

 var test = 1; console.log ("results are as such : "+ test-1 +". What we got instead is: "+ test+2 +". Astonishing!"); //The results: ("NaN. What we got instead is: 12. Astonishing!")

Hacer un "Console.WriteLine("los resultados son como tales: "+ test-1 +". Lo que obtuvimos en su lugar es: "+ test+2 +". ¡Asombroso!"); Hará exactamente lo que quiero que haga en C# (Mostrando el texto entre comillas y luego mostrando los resultados de 1-1 = 0 y 1 + 2 = 3), estoy menos familiarizado con cómo funciona en JavaScript y no puedo encontrar ninguna respuesta mientras navego .

¿Puedo conseguir una mano por favor?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

console.log(`result are as such: ${test} - 1 = ${test - 1}. and ${test} + 2 = ${test + 2}`);
about 4 years ago · Juan Pablo Isaza Report
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!