Decoding the code... can anybody explain this syntax?

For example:

const = user {id: 0, username: 'jeff'}
function haveFun ({id, username}) {
console.log (`hi ${username}`)}

Why are you using ```` back dots? and the $ dollar sign? What is the purpose of it and what does it do?

I understand that the code is doing, but I don’t understand why the use of “ ” and “$”

1 Like