Write a function qualityPoints that inputs a student’s average and returns 4 if a student's average is 90–100, 3 if the average is 80–89, 2 if the average is 70–79, 1 if the average is 60–69 and 0 if the average is lower than 60. Incorporate the function into a script that reads a value from the user. Display the result of the function in the browser’s status bar.
What will be an ideal response?
```
1
2
3
4
5
6
7
8
9
33
34
35
36