Wednesday, 7 August 2013

Change only the number inside var?

Change only the number inside var?

If you have:
var something = 'The tortoise ran 5 times faster than the fox.';
Is there a way I can edit it to change the "5" to a different number in a
new var? So I get
newSomething = 'The tortoise ran 6 times faster than the fox.';
Thanks guys

No comments:

Post a Comment