Having issues to get code block to log to console
Does not work. Nothing is logged to console
var data = {"_id": "615fc3db8b6a6311aa3295ca", "isComplete": false, "remindTime": {"date": "2021-10-08", "time": "12:08:40 am"}, "subtitle": "Fdfdff", "title": "Dfdf"}
if (data.length > 0) {
console.log('my data', data);
}
WHAT WORKS:
var data = {"_id": "615fc3db8b6a6311aa3295ca", "isComplete": false, "remindTime": {"date": "2021-10-08", "time": "12:08:40 am"}, "subtitle": "Fdfdff", "title": "Dfdf"}
if (data.title) {
console.log('my data', data);
}
Not sure what's going wrong
Aucun commentaire:
Enregistrer un commentaire