Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Well done!

You have completed (UPI) Chapter 6: Functions in JavaScript!

Instruction

Anonymous functions

Arrow Functions (=>)

Arrow functions are a compact alternative to the conventional function syntax. They abbreviate some language elements, omit others, and have only a few semantic distinctions in comparison to the original syntax. They are always anonymous but can be assigned to a variable.

"use strict";

  // original conventional syntax
function duplication(p) {
  retu...