user.name
的值并赋值给名为 userName
的变量。
HIGH_TEMPERATURES
的 today
和 tomorrow
属性赋值给 highToday
和 highTomorrow
。
highToday
变量。
testString: assert(code.match(/(var|const|let)\s*{\s*(today:\s*highToday[^}]*|[^,]*,\s*today\s*:\s*highToday\s*)}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g));
- text: 应该使用解构赋值语句创建 highTomorrow
变量。
testString: assert(code.match(/(var|const|let)\s*{\s*(tomorrow:\s*highTomorrow[^}]*|[^,]*,\s*tomorrow\s*:\s*highTomorrow\s*)}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g));
```