Category : syntax

Let’s say i have const adrian = { fullName: ‘Adrian Oprea’, occupation: ‘Software developer’, age: 31, website: ‘https://oprea.rocks’ }; const bill = { …adrian, fullName: ‘Bill Gates’, website: ‘https://microsoft.com’ }; console.log(bill.fullName) I read on a website (https://oprearocks.medium.com/what-do-the-three-dots-mean-in-javascript-bc5749439c9a) that …adrian, would give the object bill the same properties of adrian. But when I try to execute ..

Read more

I am taking up Javascript; while it shares many features with Java, which helps me a lot, it has too many shorthand and weird syntax, like numerous shorthand ways to destruct objects and declaring functions inside objects (im like crying right now as a Java intermediate). Javascript experts, what are your ways to write code ..

Read more