Insert cell
Insert cell
Insert cell
({
str: typeof "Вау, строка",
num: typeof 76.342,
bool: typeof true,
symbol: typeof Symbol("sym"),
null: typeof null,
undef: typeof obj.notExist,
bigint: typeof 1234567890123456789012345678901234567890n
})
Insert cell
Insert cell
Insert cell
function a() {
console.log(b); // undefined
if (true) {
console.log(b); // unedfined
var b = 2;
console.log(b); // 2
}
console.log(b); // 2
}
Insert cell
Insert cell
Insert cell
7.3e9
Insert cell
Insert cell
0.1 + 0.2 == 0.3
Insert cell
0.1 + 0.2
Insert cell
(0.1 + 0.2).toFixed(2)
Insert cell
Insert cell
parseInt('100px')
Insert cell
parseInt('a123')
Insert cell
parseFloat('12.5em')
Insert cell
Infinity
Insert cell
Insert cell
"double, " + "single, " + `backticks`
Insert cell
Insert cell
`Пример интерполяции ${ "строки".toUpperCase() }`
Insert cell
Insert cell
"\u{1F60D} JS 🔥 \u00A9"
Insert cell
Insert cell
{
let str = "Hi";
str[0] = "h"; // ошибка
}
Insert cell
Insert cell
Number("123")
Insert cell
+"123"
Insert cell
String(321)
Insert cell
Boolean(1)
Insert cell
Boolean("")
Insert cell
Boolean("string")
Insert cell
Insert cell
Insert cell
7 + 2

Insert cell
7 - 6
Insert cell
4 * 32
Insert cell
5 / 2
Insert cell
7 % 4
Insert cell
5**3
Insert cell
-2
Insert cell
Insert cell
Insert cell
fastSum(5, 2)
Insert cell
fastMult(3, 9)
Insert cell
function fastSum(n, m) {
return n += m;
}
Insert cell
function fastMult(n, m) {
return n *= m;
}
Insert cell
Insert cell
Math.floor(3.1)
Insert cell
Math.floor(-1.1)
Insert cell
Math.ceil(3.1)
Insert cell
Math.ceil(-1.1)
Insert cell
Math.round(3.1)
Insert cell
Math.round(3.6)
Insert cell
Math.round(-1.1)
Insert cell
Math.trunc(3.1)
Insert cell
Math.trunc(-1.1)
Insert cell
Insert cell
8 >= 8
Insert cell
5 != 3 + 4 - 2
Insert cell
3 == "3"
Insert cell
3 === "3"
Insert cell
9 > 0
Insert cell
Insert cell
5 > 3 || 5 < 7
Insert cell
4 < 4 || 4 > 6
Insert cell
5 == 5 && 2 > 3
Insert cell
5 == 5 && 2 >= 2
Insert cell
!(5 > 2)
Insert cell
!(17 < 13)
Insert cell
"2" || "4"
Insert cell
Insert cell
Insert cell
## Встроенные типы коллекций
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more