0

I am trying to understand the following expression.

const { TARGET = 'http://localhost:8080', PORT = 80 } = process.env;

How does variable declaration enclosed by curly brackets work? And how does the value assignment for process.env works? Does this type of expression have a name?

Dami
  • 677
  • 6
  • 12

0 Answers0