Properties

  • When we enter a piece of data into javascript program, the browser saves it as an instance as a data type.

  • Every string instance has a property called "length" thats stores the number of characters in the string.

  • The "." is another operator! We call it the dot operator.

Example:

console.log('Teaching the world how to code'.length)

// Outputs: 30

Last updated