Skip to content

sofijahangir/100DaysOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

100-Days-Of-Code


Day 1

indexOf()

Learned from: Codewars
Lang: JavaScript
Purpose: Finds the index/position of definted item(s) from an array
Example use:

function findNeedle(haystack) {
  return "found the needle at position " + haystack.indexOf("needle");
}
//or
const findNeedle = haystack => `found the needle at position ${haystack.indexOf('needle')}`;

About

100 Days of Code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published