vitorazevedo

Member since
vitorazevedo

Recent Docs Activity

View all activity
Page Date Comment

String


console.log(String.replace(num, /5/, '2')); is an Uncaught TypeError because num is not a string. The right example is: var num = "15"; console.log(num.replace("5", "2"));

String


console.log(String.replace(num, /5/, '2')); is an Uncaught TypeError because num is not a string. The right example is: