javascript - Do logic on data after post -


i'm building exam app. tutor makes exam , student answer exam. want show result exam after student has posted answer. use express , mongodb. when show result exam + answer of student. mean multiple choice, show answer if student took bad 1 , need show when good.

i thinking make middleware 1 correction , post result document.

do have other strategies how can handle this?

you don't need middleware that. need redirect user result page student id.

since know student id , answers, can render result page according answers have submitted.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -