codingnoob123
Coder
I am a JavaScript noob.
So I am making a quiz on my own website, I originally started making it on Google forms, but it lacks certain features that necessary.
1. The quiz is not multiple choice and some answers will give more than 1 point.
I need to write a function that checks the input text box for strings and if keywords are detected then it will give 1 point or more depending on the answer, however it has to be case-insensitive. For example, if the correct answers are: blue, red, green you would be able to submit: bLUe, RED, green and get 3 points. But typing a correct answer more than once would not give you more points, BLUE, bluE, bLUE, bLuE, BlUe would only give you 1 point not 4.
So I am making a quiz on my own website, I originally started making it on Google forms, but it lacks certain features that necessary.
1. The quiz is not multiple choice and some answers will give more than 1 point.
I need to write a function that checks the input text box for strings and if keywords are detected then it will give 1 point or more depending on the answer, however it has to be case-insensitive. For example, if the correct answers are: blue, red, green you would be able to submit: bLUe, RED, green and get 3 points. But typing a correct answer more than once would not give you more points, BLUE, bluE, bLUE, bLuE, BlUe would only give you 1 point not 4.