hands-on lab

Working with JavaScript Functions

Difficulty: Advanced
Duration: Up to 40 minutes
Students: 1,018
Rating: 3.7/5
On average, students complete this lab in20m
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

In this lab, you will be working with JavaScript functions. A function is a block of code designed to perform a specific coding task.

In this lab, you will write function declarations and expressions. Each function will have you use console.log() to display the resulting value.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Write Function Declarations
  • Write Function Expressions
  • Understand Arguments and Parameters
  • Invoke Functions

Intended Audience

  • Beginners learning front-end development
  • Software Engineers who need to learn front-end technologies to expand their skillset

Prerequisites

The following courses/courses and labs can ensure your success:

Covered topics

Hands-on Lab UUID

Lab steps

0 of 7 steps completed.Use arrow keys to navigate between steps. Press Enter to go to a step if available.
  1. Introduction to JavaScript Labs
  2. Write a function declaration
  3. Call function with arguments
  4. Write a function expression
  5. Call a function expression with an argument
  6. Write an arrow function
  7. Call an arrow function with an argument