Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Overview

Solution to the 10 Days of Javascript - Day 2: Loops in Hackerrank in NodeJS

Solutions

  • Sol1

    • This solution loops over the string with a traditional C-style loop as Javascript Strings do not natively provide the forEach semantic
  • Sol3

    • This solution loops also over the string with the forEach semantic as it gets transformed into an array of chars first by the split('') statement: this in fact tokenizes the string into an array which in fact supports the forEach semantic