Published
Edited
Jan 25, 2022
Insert cell
Insert cell
Insert cell
premierTableau = { //Cette ligne n'est utilisée que dans Observable
var pokemons = ["Pikachu", "Salamèche", "Bulbizar"];

return pokemons[0]; } //Cette ligne n'est utilisée que dans Observable
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
iterationTableau = { // Cette ligne n'est utilisée que dans Observable
var cours = ["Programmation 1", "Design Web", "Fonctionnement ordinateur", "Outils"];

for(var i = 0;i < cours.length;i++){
console.log(cours[i]);
}
return cours; } // Cette ligne n'est utilisée que dans Observable
Insert cell
Insert cell
attentionUndefined = {
var pokemons = ["Pikachu", "Salamèche", "Bulbizar",,,,,"Dracaufeu"];
pokemons[8] = "Dracaufeu";
//Les indices 3-4-5-6-7 deviennent Undefined ou empty
console.log(pokemons[6]); //Undefined

return pokemons;
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more