Destructuring Assignment

Ein Codebeispiel für Destructuring Assignment in JavaScript

1
2
const temps = {yesterday: 70, today: 71, tomorrow: 72};
const {today: highToday, tomorrow: highTomorrow} = temps;
Erstellt mit Hugo
Theme Stack gestaltet von Jimmy