Question from the Javascript - Fundamentals test

Create an object of type Recipe

Medium

What keyword should I enter to create an object ''pesto_pasta'' of type Recipe?

let pesto_pasta =? (('pasta', 500, 'g'), ('pesto', 100, 'g')); 
Author: KahinaStatus: PublishedQuestion passed 1431 times
Edit
2
Community Evaluations
developer avatar
Afonso
06/04/2023
To create an object pesto_pasta of type Recipe, you need to use the new keyword followed by the name of the constructor function Recipe.