Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
what is the meaning of ({ a } = b); in javascript?
let b = { a: 123123123 };
try {
  ({ a } = b); <<< what is the meaning of () 

} catch (error) {}
console.log({'a':a})

why this script work, what is the meaning of () in try-catch .

the { a } = b is wrong but ({ a } = b) is correct and the variable will go out of try-catch and give new value to a.

if there are a function in () may be a IIFE, if in expressions the () is a Grouping operator.and in my example,what is the meaning of ()

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

A pair of parenthesis force the contents to be treated as an expression instead of a statement.

This causes the { to be seen at the start of an object or dereferencing structure (the latter in this case) instead of a block.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!