Archived
What keyword should I enter to create an object ''pesto_pasta'' of type Recipe?
let pesto_pasta =? (('pasta', 500, 'g'), ('pesto', 100, 'g'));
0
Community Evaluations
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.
Similar QuestionsMore questions about Javascript
50
Understanding the differences between `map()` and `forEach()` methods in JavaScript26
Write a JavaScript function that fetches data from an API and logs it to the console.16
Fix the following Javascript loop:9
The certificate variable is not attainable outside the if loop8
Use spread operator to split an array into two arrays in Javascript