Excuse me, how is this written in JS?

const key = "name";
let obj;

const res = (obj = {}, obj[key] = "John", obj);
console.log(res); // {name: "John"}

I saw it in one place, and I don"t understand it. I"d like to ask how to write it

.
Mar.06,2021

comma operator.
first calculates the left Operand, then calculates the right Operand, and finally returns the value of the right Operand.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e94eba-1513.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e94eba-1513.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?