Check if your array has an element with .includes

preview_player
Показать описание
Join this channel to get access to perks:

Want to support the channel? Click below

Follow me on:
Рекомендации по теме
Комментарии
Автор

How do I check if an element exists when the array takes user input, so the array looks like. const guesses = [ ] and you want to compare if a new guess was already guessed?

wongjuan
welcome to shbcf.ru