READONLY and optional in typescript

  Рет қаралды 24,230

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Пікірлер: 34
@soumyadipghosh6563
@soumyadipghosh6563 11 ай бұрын
Welcoming 2024, with Hitesh Sir Videos!!!! Completed the js and react series, after this ts series will start your backend series!!!! You're a GEM sir!!! Loooooots of Love and Respect to you!!!!
@ankushladani496
@ankushladani496 2 жыл бұрын
In case of array if we have to make array readonly then we have to use readonly 2 times for example: readonly scores : readonly numbers[]
@jaytillu8861
@jaytillu8861 Ай бұрын
Because _id is an array, we can modify the elements within the array (like adding or changing elements), but we can't reassign _id itself to a new array.
@PrabinManandhar-y5l
@PrabinManandhar-y5l 5 ай бұрын
in case of arrays, we can still change the contents of the array because it is of reference type, ie, the variable holds the reference to the array and not the array values itself, so until the reference is the same we can do anything with the array.
@ofcljaved
@ofcljaved Жыл бұрын
In case of readonly arrays we can't assign it another array but can push a value and even change the value by indexing. I did it and typescript didn't gave me any error
@pankajkumarsharma3182
@pankajkumarsharma3182 Жыл бұрын
yes we can push the values to the array readonly property
@ShubhamVsCode
@ShubhamVsCode 2 жыл бұрын
Making progress with Hitesh Sir in Typescript 💖
@csstudent5001
@csstudent5001 2 жыл бұрын
Sir can we create movable devices cluster in python plz reply me
@pratikbhujbal6915
@pratikbhujbal6915 8 ай бұрын
in case in readonly we cannont assign new array to that array but we can push value in that array.
@MessiLeo2312
@MessiLeo2312 Жыл бұрын
4:14 NO
@priyojitsingha
@priyojitsingha 5 ай бұрын
4:11 answer: If _id would be an array, we can push values into it
@sanupdivakaran
@sanupdivakaran 4 ай бұрын
Yes, we could push values to id array even in case of READONLY.
@HARSHKUMAR-g2d6u
@HARSHKUMAR-g2d6u 2 ай бұрын
if id is array we can push the value in it regardless it readonly
@faizanahmed9304
@faizanahmed9304 2 жыл бұрын
incase of arrays, if it is assigned readonly, we can't really push the elements into the array
@yanshmoradiya
@yanshmoradiya Жыл бұрын
great work
@someshpundir788
@someshpundir788 10 ай бұрын
he said subscribe and the subscribe button just glowed up
@AryanKeluskar-jw9ge
@AryanKeluskar-jw9ge 7 ай бұрын
yes, we can push to a readonly array
@Dev-Phantom
@Dev-Phantom 4 ай бұрын
great video thanks for sharing
@csstudent5001
@csstudent5001 2 жыл бұрын
Hello sir! Sir can we create a moviable devices cluster in python.. sir plz reply me
@csstudent5001
@csstudent5001 2 жыл бұрын
Sir I m doing research simulation in ns3 ....I need your help .can you help me
@abdulkhader3650
@abdulkhader3650 2 жыл бұрын
I purchase your Course Not able to play on Ubuntu os
@jalluchakri1528
@jalluchakri1528 Жыл бұрын
Hello Sir I like this video sir and explanation also sir
@UtkarshSharma-di7vo
@UtkarshSharma-di7vo 2 ай бұрын
4:13 Yes we can push values if the type of _id is array and we can replace a particular value as well
@anuraggupta1008
@anuraggupta1008 6 ай бұрын
day 2
@MuhammadBilal-gf7ci
@MuhammadBilal-gf7ci 2 жыл бұрын
I am already a subscriber.😉
@Priyanka-bd6um
@Priyanka-bd6um Жыл бұрын
Thank you 🧡
@YouAndImpact
@YouAndImpact 2 жыл бұрын
Great 👍
@abdulkhader3650
@abdulkhader3650 2 жыл бұрын
Your support is not good I raised video play issue no reply yet
@ankushladani496
@ankushladani496 2 жыл бұрын
Present Sir...
@Vikas-dm9uc
@Vikas-dm9uc 2 жыл бұрын
❤❤❤❤❤❤❤
@ankushladani496
@ankushladani496 2 жыл бұрын
Sir give Homework like today's video So that we can have a habit of googling things and learn from self.
@shyamendrahazra
@shyamendrahazra 2 жыл бұрын
Powered by A.I. 🤣🤣🤣
@prashantkumarsharma232
@prashantkumarsharma232 2 жыл бұрын
😂😂😂😂
Union Types in TS
14:49
Hitesh Choudhary
Рет қаралды 15 М.
Generics in Typescript
12:28
Hitesh Choudhary
Рет қаралды 22 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Interface in typescript
9:55
Hitesh Choudhary
Рет қаралды 20 М.
Generic Classes in Typescript
11:15
Hitesh Choudhary
Рет қаралды 12 М.
I Cannot Believe TypeScript Recommends You Do This!
7:45
Web Dev Simplified
Рет қаралды 179 М.
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 15 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 218 М.
Abstract class in Typescript
9:37
Hitesh Choudhary
Рет қаралды 19 М.
Learn TypeScript Generics In 13 Minutes
12:52
Web Dev Simplified
Рет қаралды 292 М.
any vs unknown vs never: TypeScript demystified
8:01
Andrew Burgess
Рет қаралды 25 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН