User:Nimansa1995/sandbox

https://www.w3schools.com/code/tryit.asp?filename=FS4HROI3JFK9

use this --> https://www.w3schools.com/code/tryit.asp?filename=FS4OPZ345SRC

add this to course route file.. cannot post to courseweb :-( okkoma danna

'' Router.get('/:id', (req, res) => {   CourseModel.findById(req.params.id).populate('subjects').exec.then(subjects=>{ var amount = 0; amount = subjects })   .catch(err => { console.error(err); res.sendStatus(500); }); })'';