MCPcopy Create free account
hub / github.com/codemistic/Web-Development / getClassByRate

Function getClassByRate

Movie-app/index.js:43–51  ·  view source on GitHub ↗
(vote)

Source from the content-addressed store, hash-verified

41}
42
43function getClassByRate(vote) {
44 if (vote >= 8) {
45 return 'green'
46 } else if (vote >= 5) {
47 return 'orange'
48 } else {
49 return 'red'
50 }
51}
52
53form.addEventListener('submit', (e) => {
54 e.preventDefault()

Callers 1

showMoviesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected