functionHelloFromJs(name){// Function NameOfFunction (parameter) { <-- start of body
constoutput=`Hello `+name+`, welcome to Javascript land.`;
// Use the ^ name parameter to add you name to a message
returnoutput;// <-- a return statement
}// <-- end of body
HelloFromJs;// You call a function using the ()
CreatePigLatinPhrase('Hi Maggie this is pig latin');
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.
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.