I have a text file with 29766 words in it.
Currently, the file is formatted with one word per line, followed by a DOS CR/LF.
I'd like to write a Word-of-the-Day tool solely in javascript, where I "roll" a random number from 1 to 29766, read down to the "word of the day".
1) Is this fairly simple to write this word-of-the-day tool in pure javascript?
Okay, harder question (maybe)...
2) Is it also fairly simple to create random lists of a enterred list count from the file mentioned above... to create a "Word-of-the-day" list for a newsletter... either a weekly or monthly newsletter?
I have been a programmer for years in other languages, but I am fairly new to JavaScript. Please, be gentle.
Thanks in advance.
Currently, the file is formatted with one word per line, followed by a DOS CR/LF.
I'd like to write a Word-of-the-Day tool solely in javascript, where I "roll" a random number from 1 to 29766, read down to the "word of the day".
1) Is this fairly simple to write this word-of-the-day tool in pure javascript?
Okay, harder question (maybe)...
2) Is it also fairly simple to create random lists of a enterred list count from the file mentioned above... to create a "Word-of-the-day" list for a newsletter... either a weekly or monthly newsletter?
I have been a programmer for years in other languages, but I am fairly new to JavaScript. Please, be gentle.
Thanks in advance.
Comment