Public
Edited
Jan 4, 2019
2 forks
Insert cell
Insert cell
Insert cell
Insert cell
function HelloFromJs (name) { // Function NameOfFunction (parameter) { <-- start of body
const output = `Hello ` + name + `, welcome to Javascript land.`;
// Use the ^ name parameter to add you name to a message
return output; // <-- a return statement
} // <-- end of body
Insert cell
Insert cell
Insert cell
HelloFromJs; // You call a function using the ()
Insert cell
Insert cell
Insert cell
CreatePigLatinPhrase('Hi Maggie this is pig latin');
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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