name
and copy the value into userName
" and so on.
highToday
and highTomorrow
the values of today
and tomorrow
from the HIGH_TEMPERATURES
object.
highToday
variable.
testString: assert(code.match(/(var|const|let)\s*{\s*(today:\s*highToday[^}]*|[^,]*,\s*today\s*:\s*highToday\s*)}\s*=\s*HIGH_TEMPERATURES/g));
- text: You should use destructuring to create the highTomorrow
variable.
testString: assert(code.match(/(var|const|let)\s*{\s*(tomorrow:\s*highTomorrow[^}]*|[^,]*,\s*tomorrow\s*:\s*highTomorrow\s*)}\s*=\s*HIGH_TEMPERATURES/g));
```