Public
Edited
May 15
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
{
const a = 'hola';
console.log(a);

return a
}
Insert cell
{
const a = 'hola';
console.log(a);

a = 'bye';

return a
}
Insert cell
Insert cell
{
let a = 'hola';
console.log(a);

return a
}
Insert cell
{
let a = 'hola';
console.log(a);

a = 'bye';

return a
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
typeof age
Insert cell
Insert cell
typeof isChemaNice
Insert cell
Insert cell
typeof someValue
Insert cell
someValue === null
Insert cell
{
let myFriend = { name: 'Iryna'};
return myFriend.age
}
Insert cell
Insert cell
1 + 1
Insert cell
'my' + 'name'
Insert cell
3 - 1
Insert cell
3 * 3
Insert cell
3 * 2 + 2
Insert cell
'a' == 'a'
Insert cell
'a' === 'a'
Insert cell
{
let a = 5;
return a == '5';
}
Insert cell
{
let a = 6;
return a === '6'
}
Insert cell
Insert cell
myAnimal = 'dog'
Insert cell
{
if(myAnimal === 'cat'){
console.log('it s a cat')
}else{
console.log('it s not a cat')
}
}
Insert cell
{
let myAge = 4;
if(myAge <10){
return 'is a child'
}
}
Insert cell
Insert cell
myAnimals = ['dog','bird','cat','tutle']
Insert cell
Insert cell
{
// your for example here
}
Insert cell
Insert cell
{
myAnimals.forEach( animal =>{
console.log(animal)
})
}
Insert cell
Insert cell
globalTeam = {
const chema = {
name:'Chema',
age: 40,
country:'spain'
};

// TODO: add your object here

const team = [chema];

// TODO: add your object in the team
return team;
}
Insert cell
{
globalTeam.forEach( person =>{
// TODO: use an "if" with the person age
})

}
Insert cell
Insert cell
{
const arseny = {
name:'Arseny',
age: 42,
country:'germany'
}
globalTeam.push(arseny)
}
Insert cell
globalTeam
Insert cell
{
// your example with "pop"
}
Insert cell
{
// TODO: your example with "shift"
}
Insert cell
{
// TODO:your example with "unshift"
}
Insert cell
{
// TODO:your example with "length"
}
Insert cell
{
// TODO:your example with "map"
}
Insert cell
{
// TODO:your example with "filter"
}
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