Sha256: c288c722b9a722a0e36c64ce2b5b33a6c3de7c9561641b10ff8bc835c5622b7e

Contents?: true

Size: 206 Bytes

Versions: 100

Compression:

Stored size: 206 Bytes

Contents

'use strict';

function reverseString(string) {
  var revString = '';
  for (var i = string.length - 1; i >= 0; i--) {
    revString += string[i];
  }
  return revString;
}

module.exports = reverseString;

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.118 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.117 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.116 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.115 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.114 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.113 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.111 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.110 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.109 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.108 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.107 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.106 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.105 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.104 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.103 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.102 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.101 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.100 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.99 tracks/javascript/exercises/reverse-string/example.js