db.students.insertOne({
_id: 1001,
Firstname: "John",
Lastname: "smith",
Address: {
Streetaddress: "123 Monash Drive",
Suburb: "Clayton",
State: "VIC",
Postcode: 3168,
},
Gender: "Male",
Course: "BITS",
Year: 2019,
"Off-Campus": "false",
Email: ["jsmith@gmail.com", "jsmith@yahoo.com"],
});
After type these, i got the error of uncaught exception: SyntaxError: missing : after property id :.
Idk why this happen.