Ekin
Ekin

Reputation: 137

where should I store words for hangman game

I want to make a hangman game and I need to access the words with javascript. But where should I store these words? Is it directly with a const or something else? Can you help me please?

Upvotes: 1

Views: 62

Answers (1)

nlta
nlta

Reputation: 1914

What's wrong with this?

const words = ['word', 'words', 'wordy', 'worldly', ...] 

If you show us the format your list of words is in we could provide a more specific solution.

Upvotes: 2

Related Questions