---
title: Check the Length Property of a String Variable
localeTitle: 检查字符串变量的Length属性
数据结构具有属性。例如,字符串有一个名为`.length`的属性,它将告诉您字符串中有多少个字符。
```
lastNameLength = lastName.length;