2018-10-16 21:32:40 +05:30

285 B

title
title
Use the Conditional (Ternary) Operator

Use the Conditional (Ternary) Operator

Hint 1

Use ternary operator to check for equality.

Warning Solution Ahead!!!

function checkEqual(a, b) {
  return (a = b ? true : false );
}

checkEqual(1, 2);