Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript compare number

const isBigger = (i, j) => i > j;

const a = 1;
const b = 2;
let text = '';
if (isBigger(a, b)) {
  text = `${a} is bigger than ${b}.`;
} else {
  text = `${a} is not bigger than ${b}.`;
}
text;
//or
console.log(text);
 
PREVIOUS NEXT
Tagged: #javascript #compare #number
ADD COMMENT
Topic
Name
2+2 =