Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
The g means global which means check the entire string and don't just stop at the first number it finds.
Bitwise operators internally convert JavaScript numbers (doubles) to signed 32-Bit integers to perform their function; see the spec for the bitwise NOT operator and bitwise binary operators. 2,147,483,647 is the largest positive value a signed 32-Bit integer can take (see e.g. its Wikipedia article).
edits: Originally I said that their return value is a 32-Bit integer, which is true, but beside the point.
This comment is hidden because it contains spoiler information about the solution
Whats wrong with regex?
This comment is hidden because it contains spoiler information about the solution