!homework maybe?
if this group is not for questions,what is this for?
The variable above is holding not a json, but an object
Because you are confused with json and js object https://stackoverflow.com/questions/8294088/javascript-object-vs-json
She is right, I think. It is not a crime to have a question, you should not critic, but point her in right direction
No I meant, she is understanding it wrong, she gotta know, json is a structure and the one she posted in js object. dont want to have a wrong mental model about the terms. So she gotta do homework about the terms before asking about it.
if im wrong,please say me,as i just learned in online course ,for makeing object into string,we use JSON.stringify.And the lecturer said,if we dont use JSON,we cant alert it in browser
You can if you access the specific property.
I was talking about homework message :) About confusing json with js object you are right. Hope we explained well) Personally I think @Simen is the best at explaining :D
string you want to display in the alert dialog, or, alternatively, an object that is converted into a string and displayed. https://developer.mozilla.org/en-US/docs/Web/API/Window/alert#parameters
Обсуждают сегодня