Write Your Own Command
So far you've used commands somebody else wrote. Now you write your own. A function bundles several lines under one name so you can reuse them forever.
What you'll learn
Define a function and call it more than once.
New command
function greet(name) { … }💻 Code Editorjs
🎬
Press Run Code to see your creation!