Function Exercise #1
Lesson 4 of 14 in Coddy's Function Declarations in JavaScript course.
Challenge
EasyWrite a function named calculateSquare that takes one number as an argument and returns its square.
Try it yourself
// Write code here
All lessons in Function Declarations in JavaScript
1Course Introduction
What you will learn?3Ways of Function Declaration
Basic FunctionNested FunctionReturning a FunctionFunction ExpressionsArrow FunctionFunction Constructor