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

More By Author:

Check out these other kata created by benpigchu

Stats:

CreatedJul 20, 2017
PublishedJul 20, 2017
Warriors Trained3049
Total Skips652
Total Code Submissions14507
Total Times Completed714
JavaScript Completions711
CoffeeScript Completions17
Total Stars112
% of votes with a positive feedback rating84% of 171
Total "Very Satisfied" Votes127
Total "Somewhat Satisfied" Votes33
Total "Not Satisfied" Votes11
Total Rank Assessments5
Average Assessed Rank
2 kyu
Highest Assessed Rank
1 kyu
Lowest Assessed Rank
4 kyu
Ad
Contributors
  • benpigchu Avatar
  • JohanWiltink Avatar
  • Voile Avatar
  • metalim Avatar
  • Kacarott Avatar
Ad