Skip to content
Advertisement

How can you change a particular letter to a number?

How can you change a particular letter to a number?

programming Language -> Python

JavaScript

How do you replace ‘K’ with an integer in a string value stored in a variable?

  • K = 1000

Advertisement

Answer

You can use regex –

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement