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.139 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.138 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.137 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.136 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.135 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.134 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.133 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.132 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.131 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.130 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.129 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.128 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.127 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.126 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.125 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.124 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.123 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.122 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.121 tracks/javascript/exercises/reverse-string/example.js
trackler-2.2.1.120 tracks/javascript/exercises/reverse-string/example.js