JS tricks to use in your next project.

Converting string to number the_string = "123"; console.log(+the_string); // 123 the_string = "hello"; console.log(+the_string); // NaN Convert a number to a string var converted_number = 5 + ""; console.log(converted_number); //…

Continue Reading