1 year ago

#367922

test-img

Hasani

What does it mean when we put a variable inside { } in TypeScript?

I am interested to know what kind of difference does it make when we put the left side variable of an assignment statement into a {}?

For example:

import {....} from ,,,,  

VS

  import .... from ,,,,

Also

const {....} = function(,,,,)  

VS

const .... = function(,,,,)

typescript

syntax

variable-assignment

curly-braces

0 Answers

Your Answer

Accepted video resources