Javascript label

posted in: javascript | 0

Le code expliqué

<p id= »demo »></p>
<script>
cars = [« Français », « Histoire », « Géographie », « Mathématiques », « Sciences », « Informatique »];
text = «  »;
list: {
text += cars[0] + « 
« ;
text += cars[1] + « 
« ;
text += cars[2] + « 
« ;
text += cars[3] + « 
« ;
break list;
text += cars[4] + « 
« ;
text += cars[5] + « 
« ;
}
document.getElementById(« demo »).innerHTML = text;
</script>

logowebmaster1