user.name
and assign it to a new variable named 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*:\s*highToday[^}]*|[^,]*,\s*today\s*:\s*highToday\s*)}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g));
- text: You should use destructuring to create the highTomorrow
variable.
testString: assert(code.match(/(var|const|let)\s*{\s*(tomorrow\s*:\s*highTomorrow[^}]*|[^,]*,\s*tomorrow\s*:\s*highTomorrow\s*)}\s*=\s*HIGH_TEMPERATURES(;|\s+|\/\/)/g));
- text: highToday
should be equal to 77
and highTomorrow
should be equal to 80
.
testString: assert(highToday === 77 && highTomorrow === 80);
```