Published
Edited
Jul 2, 2018
Insert cell
Insert cell
Insert cell
Insert cell
2 + 2
Insert cell
5 - 3
Insert cell
2 + 5 + 8 - 10
Insert cell
Insert cell
2 + 'ala'
Insert cell
2 + '2'
Insert cell
'2' + 2
Insert cell
'kot' + 'ala'
Insert cell
2 + 2 + 'ala'
Insert cell
'ala' + 2 + 2
Insert cell
Insert cell
true + true
Insert cell
false + false
Insert cell
({}) + ({})
Insert cell
Insert cell
2 * 2
Insert cell
2 * 'ala'
Insert cell
{
const x = 2
return 2 * x
}
Insert cell
{
const x = 'ala'
return 2 * x
}
Insert cell
2 / 2
Insert cell
5 / 'ala'
Insert cell
2 % 2
Insert cell
4 % 2
Insert cell
5 % 2
Insert cell
Insert cell
Insert cell
{
let a = 4
return a++ // but a is now equlas to 5 because we returning value before increase
}
Insert cell
{
let a = 4
return ++a // we returning value after increase
}
Insert cell
{
let a = 4
return a-- // but a is now equlas to 3 because we returning value before decreasem
}
Insert cell
{
let a = 4
return --a // we returning value after decreasem
}
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