2 kyu
How can I throw an error here?
711 of 714benpigchu
Description:
Write a function named bang
throwing an Error
with a message string "Just throw like this!"
with these limits:
- no invoking
require
function - no invoking function constructors
- no invoking
eval
function - no
throw
in your code - no
Error
in your code - no
\
in your code
Also, we removed fs
and vm
from global scope, redefined assert
, and removed assert
from console
.
Do not modify Error
in global scope, we do not use it to check ( J/K, we do use it ).
Puzzles
Similar Kata:
Stats:
Created | Jul 20, 2017 |
Published | Jul 20, 2017 |
Warriors Trained | 3049 |
Total Skips | 652 |
Total Code Submissions | 14507 |
Total Times Completed | 714 |
JavaScript Completions | 711 |
CoffeeScript Completions | 17 |
Total Stars | 112 |
% of votes with a positive feedback rating | 84% of 171 |
Total "Very Satisfied" Votes | 127 |
Total "Somewhat Satisfied" Votes | 33 |
Total "Not Satisfied" Votes | 11 |
Total Rank Assessments | 5 |
Average Assessed Rank | 2 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 4 kyu |