Answer the question
In order to leave comments, you need to log in
Object cannot be converted to another data type?
A question. Why does the operator typeof
still return , after converting an object to a primitive data type object
?
let a = {
};
console.log(String(a)); //преобразование к строке
console.log(typeof a); //object
typeof function => function
)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question