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.
Instagram ● Twitter ● Facebook
Micro-Learning ● Web Development ● Javascript ● MERN stack ● Javascript
codedrops.tech
Top comments (0)