Double Letters

Published by Pickle in

Create a function that takes a word and returns true if the word has two consecutive identical letters.

Examples

doubleLetters("loop") ➞ true

doubleLetters("yummy") ➞ true

doubleLetters("orange") ➞ false

doubleLetters("munchkin") ➞ false

Notes

N/A

Watch a quick demo on how Edabit works.