相关疑难解决方法(0)

The different between object and plain object in JavaScript?

Couldn’t understand the difference between object and plain object in JavaScript.

I know how Object looks like but don’t understand plain object. I googled about this but couldn’t understand.

As per my understanding normal object looks like below

  const object = {};
Run Code Online (Sandbox Code Playgroud)

Or we do call functions as objects in JavaScript

function test(){

}
Run Code Online (Sandbox Code Playgroud)

But what is plain object? how it differs with normal object. Thank you

Edit:

My confusion started about plain object after looking at below error. So …

javascript javascript-objects redux

5
推荐指数
3
解决办法
6795
查看次数

标签 统计

javascript ×1

javascript-objects ×1

redux ×1