meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| exercice_fonction_et_variables [2014/09/10 11:44] – créée André Girard | exercice_fonction_et_variables [2014/09/10 16:00] (Version actuelle) – André Girard | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | | + | <sxh js; html-script: |
| - | < | + | < |
| - | < | + | < |
| - | < | + | < |
| - | </ | + | < |
| - | + | </ | |
| - | < | + | |
| - | + | < | |
| - | <p id=" | + | |
| - | + | <p id=" | |
| - | < | + | |
| + | < | ||
| document.getElementById(" | document.getElementById(" | ||
| "La température est " + enCelsius(32) + " celsius"; | "La température est " + enCelsius(32) + " celsius"; | ||
| - | | + | |
| function enCelsius(fahrenheit) { | function enCelsius(fahrenheit) { | ||
| return (5/9) * (fahrenheit-32); | return (5/9) * (fahrenheit-32); | ||
| - | } | + | } |
| - | </ | + | </ |
| - | + | ||
| - | </ | + | </ |
| - | </ | + | </html> |
| + | </sxh> | ||