AdleyEskridge's public fiddles
-
Wrap text on hyphens
Shows a method of wrapping long text on hyphens. Created as an answer for the following question: http://stackoverflow.com/questions/904/in-html-how-to-word-break-on-a-dash
-
Accessing properties in JavaScript
Contrively demonstrates two ways of accessing properties in JavaScript. Created for an answer to this question: http://stackoverflow.com/questions/8865289/window-array-in-mathjax/8865347#8865347
-
An alternate method of breaking from a loop
You can't break from a `forEach `loop, but you can break from an `every` loop!
-
Pass-by-reference
Shows that objects (not primitives!) are passed by reference in JavaScript.
-
JavaScript's `new` operator
This demonstrates the relationship between JavaScript's `new` operator and the return type of constructors.
-
Regex for a country code (#1)
This demonstrates one possible method of replacing a phone number's country code using JavaScript regular expressions.
-
Regex for a country code (#2)
This demonstrates another method of replacing a phone number's country code using JavaScript regular expressions.