Double Letters

Published by Helen Yu in

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

Examples

double_letters("loop") ➞ true

double_letters("yummy") ➞ true

double_letters("orange") ➞ false

double_letters("munchkin") ➞ false

Notes

N/A

Watch a quick demo on how Edabit works.