Copiez le code comme suit :
<html>
<tête>
<title>L'utilisation de fonctions ordinaires en javascript</title>
<script>
fonction show(){
document.write("afficher la fonction a été appelée" + "<br/>");
retourner 10 ;
}
var hello = show();//La fonction show() est appelée et la valeur de retour est affectée à la variable hello. Si la fonction ne renvoie pas de valeur, elle renvoie undéfini
document.write(bonjour + "<br/>");//10
var hello2 = show;//show et hello2 pointent vers la même fonction
document.write(hello2 + "<br/>");//Imprimer le corps de la fonction de show
hello2();//Équivalent à l'appel de la fonction show()
</script>
</tête>
<corps>
</corps>
</html>