Published
Edited
Jul 31, 2020
Insert cell
md`# variable and array`
Insert cell
a = {
var a = 99;
a = a * a;
return a
}
Insert cell
s = {
var s = "人们"
return s
}
Insert cell
score = {
var score = 100;
return score
}
Insert cell
count = {
var count = ['a','b','c','d']
count[0] = 'e'
count[5] = 'f'
return count
}
Insert cell
sentence = {
var name = "abser"
var action = "beat"
var anothername = "oiar"
var sentence = name + action + anothername
return sentence
}
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