What is the `name` keyword in JavaScript?

前端 未结 4 666
温柔的废话
温柔的废话 2020-12-03 17:23

When I typed this apparently innocent snippet of code:

values.name

gedit highlighted name as a keyword. However,

4条回答
  •  眼角桃花
    2020-12-03 17:40

    It's not a reserved word it's a variable (it is window.name) I'm not sure what it's defined by though.

提交回复
热议问题