Faster, Higher, Stronger

Value Types in JavaScript

In JavaScript, a piece of information is a value. There are different kinds of values. The kind you’re most familiar with are numbers. A string value is characters – such as a word or words – enclosed in quotes. These kinds of JavaScript values are listed in the table below.

Type Description Example
Number Any numeric value 3.141592654
String Characters inside quote marks “Hello, world!”
Boolean True or False true
Null Empty and meaningless
Object Any value associated with the object
Function Value returned by a function
赞(0) 打赏
转载需注明来源并给出来源页链接:峰间的云 » Value Types in JavaScript

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址