But now code that calls between can do something like:var input = prompt("Tell me something", ""); var parenthesized = between(input, "(", ")"); if (parenthesized != undefined) print("You parenthesized '", parenthesized, "'."); Premium Course1h 1m Premium CourseDarin Haener, Jun 09Diving into ES2015 Premium Course3h 7m Premium CourseM. Content is available under these licenses. What this means differs between the different browsers, sometimes a description of the error is written to some kind of log, sometimes a window pops up describing the error. ¶ The http://rsmasters.net/script-error/java-script-error.html
This bomb simulates an exception that gets thrown as a TypeError. http://rsmasters.net/script-error/java-script-error-in-ie6.html Too cool! For example, the following line causes a runtime error because here the syntax is correct, but at runtime, it is trying to call a method that does not exist.