Hello, I have a little amateur doubt I'm starting with node.js and through my learning I came across a situation and would like to understand, in one of the codes that I researched I found a variable declared the name in braces as the example below
const { home } = app.controllers;
I already know how this function works but I would like to understand what the keys are for {} because when I throw them the code presents error what is the difference between
const { home } = app.controllers;
and const home = app.controllers;