What is the `name` keyword in JavaScript?

前端 未结 4 672
温柔的废话
温柔的废话 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:49

    Its not a javascript reserved word, its an html attribute. Any DOM element can have a name. Looks like your syntax editor will still highlight it.

提交回复
热议问题