'What is an exclamation point in JavaScript?

What does an exclamation mark before a function do?

Example:

return !loadDynamicBlock();


Solution 1:[1]

The ! in Javascript inverts a boolean expression.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 JaredPar