Learn how an Array makes JavaScript if conditions more readable.
Topic: JavaScript – Page 8
.includes The second parameter of Array.prototype.recude() (the initial value) is optional.
Use
reportErrorto report errors to global error event handlers.Use capture groups in regular expressions to preserve the separators in the result of String.prototype.split().
The multiline mode in JavaScript expressions changes the behavior of ^ and $ to match patterns across multiple lines.