String increment


/ Published in: JavaScript
Save to your folder(s)

It's not usefull at all. >


Copy this code and paste it in your HTML
  1. String.prototype.increment = function() {
  2. return this.split('').map(function(s) {
  3. return String.fromCharCode(s.charCodeAt(0) + 1);
  4. }).join('');
  5. }
  6.  
  7. "javascript".increment() //kbwbtdsjqu

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.