var a = "12345"; alert([a, typeof a]); alert([~~a, typeof ~~a]); alert([+a, typeof +a]); alert([a >> 0, typeof (a >> 0)]);