Write a function that throws an error. Contstraints:
- do not use
throw
- one line only
- simply returning an Error is not sufficient (since it's not thrown)
- function declaration must not throw the error, only execution should throw
- Syntax error is not allowed!
- max. ovarall characters for the code: 15
Tips:
- the function is not something you should ever use in your code
- think of fundamentals and what you learned about them
- it's marked
#beginners
, because it's way easier than you might think - you can make pretty weird things with JavaScript