Answers for "Use the conditional operator in the checkEqual function to check if two numbers are equal or not. The function should return either "Equal" or "Not Equal"."

0

Use the conditional operator in the checkEqual function to check if two numbers are equal or not. The function should return either "Equal" or "Not Equal".

function checkEqual(a, b) {
  return a === b ? "Equal" : "Not Equal";
}
Posted by: Guest on December-19-2019

Code answers related to "Use the conditional operator in the checkEqual function to check if two numbers are equal or not. The function should return either "Equal" or "Not Equal"."

Code answers related to "Javascript"

Browse Popular Code Answers by Language