loading...

Output of 'Math.max() < Math.min()' ?

318097 profile image Mehul Lakhanpal ・1 min read
console.log(Math.max() < Math.min()); // true

The default value for Math.max() is -Infinity &
the default value for Math.min() is Infinity

Hence, -Infinity < Infinity => true


Thanks for reading 💙

Follow @codedrops.tech for daily posts.

InstagramTwitterFacebook

Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript

codedrops.tech

Discussion

pic
Editor guide