JS Javascript string to number transform

transform string to number in Javascript