--- id: 62a3bec30ea7f941412512dc title: Step 33 challengeType: 0 dashedName: step-33 --- # --description-- Proprio come hai fatto con i pulsanti, crea delle variabili per i seguenti `id` e usa `querySelector()` per dar loro l'elemento come valore: `text`, `xpText`, `healthText`, `goldText`, `monsterStats` e `monsterName`. Ricorda di dichiarare le variabili con la parola chiave `const` e di dar loro nomi corrispondenti agli `id`. # --hints-- Dovresti dichiarare una variabile `text` con `const`. ```js assert.match(code, /const text/); ``` La variabile `text` dovrebbe avere il valore dell'elemento `#text`. ```js assert.deepEqual(text, document.querySelector('#text')); ``` Dovresti dichiarare una variabile `xpText` con `const`. ```js assert.match(code, /const xpText/); ``` La variabile `xpText` dovrebbe avere il valore dell'elemento `#xpText`. ```js assert.deepEqual(xpText, document.querySelector('#xpText')); ``` Dovresti dichiarare una variabile `healthText` con `const`. ```js assert.match(code, /const healthText/); ``` La variabile `healthText` dovrebbe avere il valore dell'elemento `#healthText`. ```js assert.deepEqual(healthText, document.querySelector('#healthText')); ``` Dovresti dichiarare una variabile `goldText` con `const`. ```js assert.match(code, /const goldText/); ``` La variabile `goldText` dovrebbe avere il valore dell'elemento `#goldText`. ```js assert.deepEqual(goldText, document.querySelector('#goldText')); ``` Dovresti dichiarare una variabile `monsterStats` con `const`. ```js assert.match(code, /const monsterStats/); ``` La variabile `monsterStats` dovrebbe avere il valore dell'elemento `#monsterStats`. ```js assert.deepEqual(monsterStats, document.querySelector('#monsterStats')); ``` Dovresti dichiarare una variabile `monsterName` con `const`. ```js assert.match(code, /const monsterName/); ``` La variabile `monsterName` dovrebbe avere il valore dell'elemento `#monsterName`. ```js assert.deepEqual(monsterName, document.querySelector('#monsterName')); ``` # --seed-- ## --seed-contents-- ```html