Note: If the above Boolean() method is called as Boolean(!numvalue), it shows the result as “false“. Similarly if it is called as Boolean(!!numvalue), it gives the result as “true“.
Before clicking on button:
After clicking on button: