Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions 02basics/myObjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
// isAvtive: true
// }

// function createUser({name: string, isPaid: boolean}){}
// destruct the object passed as parameter and assign datatype to it
// function createUser({name, isPaid} : {name: string, isPaid: boolean}){}

// let newUser = {name: "hitesh", isPaid: false, email: "[email protected]"}

Expand Down Expand Up @@ -69,4 +70,4 @@ myUser.email = "[email protected]"



export {}
export {}