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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.