Created
November 18, 2015 15:15
-
-
Save mrandri19/544ee66ac94d94661c4f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compito per il 19/11 | |
| Un quiz con le seguenti caratteristiche: | |
| - Punteggio | |
| - Dire (usando `console.log()` o `alert()`) se la risposta e' giusta | |
| - Almeno 3 domande | |
| ## Prompt() | |
| ```js | |
| prompt(); | |
| //vi appare sullo schermo un box dove scrivere e dei bottoni con ok e cancel | |
| //se fate ok propmt() restituisce cio che avete inserito nel box | |
| ``` | |
| ```js | |
| var risposta = prompt("Come ti chiami?"); | |
| console.log(risposta); | |
| //Nel mio caso (e di Rapa) sara' Andrea | |
| ``` | |
| --- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment