r/learnjavascript • • Nov 03 '20

22 Javascript String Methods 🔥

201 Upvotes

9 comments sorted by

View all comments

1

u/Harbltron Nov 03 '20

WOW, includes() is almost perfect for conditionals in the game I'm making; if the word in question exists in the text prompt then I can use that as a flag instead of explicitly storing conditions elsewhere.

Thanks!