JavaScript-Developer-I Exam Question 56

What are two unique features of functions defined with a fat arrow as compared to normal function definition?
Choose 2 answers
  • JavaScript-Developer-I Exam Question 57

    A developer wants to use a module named universalContainersLib and then call functions from it.
    How should a developer import every function from the module and then call the functions foo and bar?
  • JavaScript-Developer-I Exam Question 58

    Cloud Kicks has a class to represent items for sale in an online store, as shown below:
    Class Item{
    constructor (name, price){
    this.name = name;
    this.price = price;
    }
    formattedPrice(){
    return 's' + String(this.price);}}
    A new business requirement comes in that requests a ClothingItem class that should have all of the properties and methods of the Item class but will also have properties that are specific to clothes.
    Which line of code properly declares the clothingItem class such that it inherits from Item?
  • JavaScript-Developer-I Exam Question 59

    Refer to the code below:
    let timeFunction =() => {
    console.log('Timer called.");
    };
    let timerId = setTimeout (timedFunction, 1000);
    Which statement allows a developer to cancel the scheduled timed function?