Btw, you have 2 very, very minor things that need correction in your code examples
console.log(squareB); // ReferenceError: squareX is not defined.
should be // ReferenceError: squareB is not defined.
// ReferenceError: squareB is not defined.
and you call hallo(); // B C, but hallo() isn't a function ;)
hallo(); // B C
Thanks James, good catch!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.