« first day (3494 days earlier)      last day (608 days later) » 

 
5 hours later…
user6593469
11:01 AM
-3
Q: Student Results Management DB Suggestion [PHP/MySQL]

Ahmed RazaStudents belongs to different classes are examined couple of times per semester and their performance/grades are recorded each time and saved in database for a complete progress report. Student results types: Test Series Mid-Term Examination Pre-Final Examination Assignment/Presentation An exam...

 
12:33 PM
1 message moved from Bad Stack Overflow Reviews
 
2:18 PM
In below code when console.log(res) i get same as what i have got at console.log(req),but when i try to fetch res.category it shows "undefined" unlike req.category why??


exports.read=(req,res)=>{

console.log(req);//shows all requested data
console.log(res);//shows all requested data
console.log(req.category);//shows particular category object data
console.log(res.category);//shows undefined

return res.json(req.category);

}
 
1 message moved from JavaScript
 
In below code when console.log(res) i get same as what i have got at console.log(req),but when i try to fetch res.category it shows "undefined" unlike req.category why??

cmd prompt screenshot

exports.read=(req,res)=>{

console.log(req);//shows all requested data
console.log(res);//shows all requested data
console.log(req.category);//shows particular category object data
console.log(res.category);//shows undefined

return res.json(req.category);

}
 
1 message moved from JavaScript
 
2:32 PM
exports.read=(req,res)=>{

console.log(req);//shows all requested data
console.log(res);//shows all requested data
console.log(req.category);//shows particular category object data
console.log(res.category);//shows undefined

return res.json(req.category);

}
 
1 message moved from JavaScript
 

« first day (3494 days earlier)      last day (608 days later) »