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.