01 / 04
A function is also a value
The function you defined last lesson is in fact a value. It can be handled like a number or a string.
Try handing it to console.log without the () and back comes "this is a function". With () the inside runs; without, it means the function itself.
function hello() { console.log("hey");}console.log(hello);hello();Result
function hey