Motivation: Basic familiarity with the programming language used on the job is a prerequisite for quickly getting up to speed.
The testing process: Analyzing or writing code using basic language constructs.
Motivation: A programmer should use language as a tool, always taking advantage of language-specific data types and built-in functions.
Modify the ensure function so that it throws an error if called without arguments or an argument is undefined. Otherwise it should return the given value.
- No arguments: Wrong answer
- Truthy argument: Wrong answer
- Falsy argument: Wrong answer