开发者

What does explicitly & implicitly mean in JavaScript?

I often see the terms expli开发者_运维问答citly & implicitly used in JavaScript and I'm still not sure I know what they mean i.e the following text from the MDC site describing the object model.

The constructor function explicitly sets the value of the projects property, and implicitly sets the value of the internal __proto__ property to the value of WorkerBee.prototype...

[source]


"Implicitly" means that the JS engine does it. "Explicitly" means that you must do it.


There are two types of coercion in JavaScript: Implicit Coercion: Type conversion is done implicitly by JavaScript. Explicit Coercion: Type conversion is done explicitly in code using the inbuilt functions like Number(), String(), Boolean(), etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜