Can anyone explain the purpose of this statement and the difference between using const and var?
const { SearchIcon } = myApp.icons;
I am currently exploring Vue and still relatively new to Javascript. This code snippet appeared in a tutorial example. The SearchIcon represents an icon imported from heroicons, while MyApp.icons is defined in another script file as shown below:
window.MyApp = {
app: null,
icons: {},
...