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

247
Views
Si la declaración devuelve una declaración verdadera y falsa en javascript

La función acepta (val) como argumento y si (val == 5) debe ejecutarse si la declaración y devolver Igual , de lo contrario no igual. Pero si val es igual a 5, entonces la función también devuelve false Not Equal . Principiante Aquí . Gracias

javascript

 function testNotEqual(val) { if (val == 5) { return "Equal"; } else { return "Not Equal"; } } testNotEqual(5); console.log(testNotEqual());

ingrese la descripción de la imagen aquí

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

0

Prueba esto:

 function testNotEqual(val) { if (val == 5) { return "Equal"; } return "Not Equal"; } let test = testNotEqual(5); console.log(test);
about 4 years ago · Juan Pablo Isaza Report

0

Invocó esta función dos veces y la segunda vez no pasó nada como argumento

 function testNotEqual(val) { if (val === 5) { return "Equal"; } else { return "Not Equal"; } } document.getElementById("te").innerHTML = testNotEqual(5);
 body { margin: 0; background: #333; }
 <p style="color:white" >The Result is: <span id="te"></span> </p>

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!