meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| exercice_fonction_et_variables [2014/09/10 15:51] – André Girard | exercice_fonction_et_variables [2014/09/10 16:00] (Version actuelle) – André Girard | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | < | + | <sxh js; html-script: | 
| < | < | ||
| < | < | ||
| Ligne 5: | Ligne 5: | ||
| < | < | ||
| </ | </ | ||
| - |  | + | |
| < | < | ||
| - |  | + | |
| <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); | ||
| - | } | + | } | 
| </ | </ | ||
| - |  | + | |
| </ | </ | ||
| </ | </ | ||
| </ | </ | ||