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
64
Understanding the differences between `map()` and `forEach()` methods in JavaScript28
Write a JavaScript function that fetches data from an API and logs it to the console.19
Fix the following Javascript loop:10
The certificate variable is not attainable outside the if loop9
Use spread operator to split an array into two arrays in Javascript