Explanation of title case console.log("titlecase:", personName.replace(/\b\w/g, c => c.toUpperCase())); console.log("titlecase:", personName.replace(/\b\w/g, c => c.toUpperCase())); Here's a detailed explanation of the code: 1. Breaking down the code: console.log("titlecase:", ...): This part prints a message to the console, indicating that the output is a titlecased version of the input. personName.replace(/\b\w/g, c => c.toUpperCase()): This is the core expression that performs the titlecasing: personName: This variable presumably holds the name string to be titlecased. .replace(/\b\w/g, c => c.toUpperCase()): This applies a regular expression-based replacement to the name string: /\b\w/g: This regular expression matches the first letter of each word in the string. \b: Matches a word boundary (the beginning or end of a word). \w: Matches a single word character (letter, digit, or underscore). g: Global flag, indicating that all matches in the string should be replaced, not just the first one. c => c.toUpperCase(): This is a callback function that's executed for each match. It converts the matched character to uppercase using the toUpperCase() method. 2. How it works step by step: The regular expression /\b\w/g identifies the first letter of each word in the personName string. For each matched letter, the callback function c => c.toUpperCase() is invoked. The callback function converts the matched letter to uppercase using c.toUpperCase(). The replace method replaces the original lowercase letters with the uppercase versions, resulting in a titlecased string. The final titlecased string is printed to the console, preceded by the label "titlecase:". Example: If personName is "john doe", the output would be: John doe
Unable to write file 'd:\class 01 ts\main.ts' (NoPermissions (FileSystemError): Error: EPERM: operation not permitted, open 'd:\class 01 ts\main.ts') sir ye error araha hy jub my main.ts ki file bana raha hun
Error in hellow world and first assignment lecture link Jis k pass error araha hai Ye Whatsapp channel hai is pe upper ki taraf error 2 k naam say video hai ap wo dekh lein error. Solved ho jaye ga whatsapp.com/channel/0029VaCJeIA4o7qMgTLbGU34
sir when we are not using tsconfig and package.json files right now, what's the reason of including them in every exercise, isn''t it absurd for now and kind of waste of time.
C:\Users\fawad khan\Desktop\type script project\personal massage>tsc app.ts error TS6053: File 'app.ts' not found. The file is in the program because: Root file specified for compilation Found 1 error. sir ya error ara hai. Jab mai tsc app.ts kar ka enter kara hoo kiya app bata sakty hai kis chez ka error hai.
aap laptop le lo aap ke course ka main part toh yahi hai mobile mein samaj nai ayega apko yar apka course kharab ho jayega bad mein ja kar baut confusion hogi apko aap ke sar ke upar se jayega sab kuch
@@hingorohingoro9966bhai mil Jaye conputer le lo Mara bhi budget nhi tha 1 week hoa he lye hoye 13000 ka lya he sub kuch shi chul rha he bus lenay ke baad window10 karwa lena
Sir typescript problem kr raha he apko msg kiya tha phele bhi ..error de rahs he power shell me jo apne btaya tha wo bhi same copy paste krke check krliya vs code ko close krke open bhi krliya but ..error ab bhi de raha he kindly btade kiya kre ..Thank you
sometimes error is waja se b ata hai agr hum file c folder main rakhte hen tou ap desktop py folder create kr k dekho and vs open krne k bad jesa btaya hai first app.ts ki file bano vs main then baki
@@knowledgelearning9352 dekhe apne jis trha q2 kia he mene sake wese hi kia to apne ye krte hue jo cmd me code run kie usse kitni saari files bn gae he to wo saari baar baar banegi phir wahi upload krni hogi saafi
Sir app.js ki file nhi create ho rhi... Error a rha he File 'app.ts' not found. The file is in the program because : Root file is specified for compilation
Ap Pura visual studio band karkay Jo folder bana hay is may jakar folder open with visual studio par click kare pir TSC main.ts run kare inshallah hogye ga
Assalamoalaikum sir mai jb exercise krrhi hun tou jou ts mai likhrhi hun js ki file create krnay k baad usmai likha nhi araha mainay bht bar try kia plzz koi solution btadein..
Sir ek bat samjh nahi arahi ap yeh 4 files q Bana rahay hain her bar jab Kay ek folder main hum ts ki file Bana Kar jab Kam kartay hain or tsc filename.ts karwatay hain phir node file name.Js karwatay hain tu us main bhi aram say working ho jaty hai
yar thursday ko mein ne class miss kiya fever tha muje koi bata de next class ke liye kya tayari kar ke jana hai muje home work ya assignment kya hai please
boss package.json file nhi bunre. mai comment bhi sahi dalra hoo. npm init -y lekin ya error ara hai. C:\Users\fawad khan\Desktop\type script project ame case>npm init -y npm ERR! Invalid name: "name case" npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\fawad khan\AppData\Roaming pm-cache\_logs\2024-02-22T21_10_07_724Z-debug.log C:\Users\fawad khan\Desktop\type script project ame case>
Sir ap ki video dekhny say bhoot Achy say Samjh ata Hy Thank You Sir
bro ye run kise karte hain
very informative video sir apki video dekh ker dil se apky liye dua nikalti hain thankss
Bohut shukriya apka
@@knowledgelearning9352 bro ye run kise karte han apni _D ke bad run keya to ye kise kia napni kise karte ha run
Thanks sir bht acha samjhya ha sir ap jaldi jaldi assignment complete karva da
JAZAK ALLAH
👍
Good har question k complete hone k bad repet krdia kry again that good❤
Thanks 😊
Thank you sir❤❤
Thank you Sir
Most welcome
close folder karney se pehly files save kar lena ya auto save option on karden is se ap ki programming safe & save rahegi.
Ek aur correction ap ne let personName: main Collin nahi dye code run tau kar jaega lekn kabhi kabhi heavey work m issues hojaengy.
Sir kindly yai btaeya title case Mai replace function Kaisa use kya
Assalamualaikum sir please typescript ki series bnai
Bro config ki files her folder m alag bnani h y ak p hi kre g.
And sir one more thing isme itni saari files bani he q2 solve krne kw lie to hum git hub pr saari files alag alag daalenge
sir plz yeh projects github pr kis trhan upload krne hai video banaden ek
Sir app.ts compile nahi ho rha app.js main. . . . error arha hai keh rhe hain app.ts not found
ap pehle likho gy
tsc app.ts
then
node app.js krogy hojaiga
Bhai AK jaldi jaldi assignment poo ray Karwa do
Title case ma jo coding ki ha wo explain kren plz
Explanation of title case
console.log("titlecase:", personName.replace(/\b\w/g, c => c.toUpperCase()));
console.log("titlecase:", personName.replace(/\b\w/g, c => c.toUpperCase()));
Here's a detailed explanation of the code:
1. Breaking down the code:
console.log("titlecase:", ...): This part prints a message to the console, indicating that the output is a titlecased version of the input.
personName.replace(/\b\w/g, c => c.toUpperCase()): This is the core expression that performs the titlecasing:
personName: This variable presumably holds the name string to be titlecased.
.replace(/\b\w/g, c => c.toUpperCase()): This applies a regular expression-based replacement to the name string:
/\b\w/g: This regular expression matches the first letter of each word in the string.
\b: Matches a word boundary (the beginning or end of a word).
\w: Matches a single word character (letter, digit, or underscore).
g: Global flag, indicating that all matches in the string should be replaced, not just the first one.
c => c.toUpperCase(): This is a callback function that's executed for each match. It converts the matched character to uppercase using the toUpperCase() method.
2. How it works step by step:
The regular expression /\b\w/g identifies the first letter of each word in the personName string.
For each matched letter, the callback function c => c.toUpperCase() is invoked.
The callback function converts the matched letter to uppercase using c.toUpperCase().
The replace method replaces the original lowercase letters with the uppercase versions, resulting in a titlecased string.
The final titlecased string is printed to the console, preceded by the label "titlecase:".
Example:
If personName is "john doe", the output would be:
John doe
@@knowledgelearning9352 jazakaAllah
Sir git account sign up krne k bad account public krna he ya private
Public
har questiion k lye node module ,config JSON ki files banana kiun zaruri hain ek bar kafi nhi ??
config ki file zaroori hai baqi nahe
compilation k liye
whatsup group show nahi ho raha hai?
Unable to write file 'd:\class 01 ts\main.ts' (NoPermissions (FileSystemError): Error: EPERM: operation not permitted, open 'd:\class 01 ts\main.ts') sir ye error araha hy jub my main.ts ki file bana raha hun
Error in hellow world and first assignment lecture link
Jis k pass error araha hai
Ye Whatsapp channel hai is pe upper ki taraf error 2 k naam say video hai ap wo dekh lein error. Solved ho jaye ga
whatsapp.com/channel/0029VaCJeIA4o7qMgTLbGU34
Question 4 case walay code main error hay plz check
Correct this in title case code
/\b\w/g not /\ bw/g
@@adilali4954 but i didn't get error
Sir plz whatapp group num den.. May ne ap ki videos se bht kuch seekha hy.. Jazak Allah
sir when we are not using tsconfig and package.json files right now, what's the reason of including them in every exercise, isn''t it absurd for now and kind of waste of time.
ap ki class ka konsa day ha.....mine wednesday 2 to 5....
Do you considered answering my question before asking this
yes ye Meri requirements nahe governor Sindh IT course k teachers nay kaha hai
is ka use first time menay typescript beginner k lecture 6 me Kiya hai
Title case Ki problem arhi he bilkul shi likha phir bhi 5 time write kya 1 word dekh phir bhi problem a rhi he
tsc app.ts k bad app.js ki file tw create ho rahi lekin code nahi a raha likha huwa💔
bro ye run kise karte han y e _D bad apni run kia to ye run kise karte ha
C:\Users\fawad khan\Desktop\type script project\personal massage>tsc app.ts
error TS6053: File 'app.ts' not found.
The file is in the program because:
Root file specified for compilation
Found 1 error.
sir ya error ara hai. Jab mai tsc app.ts kar ka enter kara hoo kiya app bata sakty hai kis chez ka error hai.
sir ye brackets ku use krte hen ?
Sir mobile Mai Jo aap ne bata ya tha Jo web site type ke usmai dusre file nhi ban rhae
aap laptop le lo aap ke course ka main part toh yahi hai mobile mein samaj nai ayega apko yar apka course kharab ho jayega bad mein ja kar baut confusion hogi apko aap ke sar ke upar se jayega sab kuch
@@ajaydevgan24 Mera budget 15 tak hai to mil Jai gha PC ya laptop
@@hingorohingoro9966bhai mil Jaye conputer le lo
Mara bhi budget nhi tha 1 week hoa he lye hoye 13000 ka lya he sub kuch shi chul rha he bus lenay ke baad window10 karwa lena
apko mil to jayega used mein lekin pata nai kab tak chalega@@hingorohingoro9966
Sir typescript problem kr raha he apko msg kiya tha phele bhi ..error de rahs he power shell me jo apne btaya tha wo bhi same copy paste krke check krliya vs code ko close krke open bhi krliya but ..error ab bhi de raha he kindly btade kiya kre ..Thank you
sometimes error is waja se b ata hai agr hum file c folder main rakhte hen tou ap desktop py folder create kr k dekho and vs open krne k bad jesa btaya hai first app.ts ki file bano vs main then baki
Terminal ma last ma jab tsc app.ts like per
Sir mene start me cmd me tsc -- init likha hai to bar bar eperm error arha hai...iska mtlb?
Ye submit kab krwana hai?
45 question ki slide ki link description mn den plz
github.com/panaverse/learn-typescript/blob/master/NODE_PROJECTS/getting-started-exercises.md
.gitignore kis lie kam ate file??
Sir hum direct app.ts bana ke compile q ni kr rahe pehle ye itni files q bana rahe he in sab ka kia kaam he
Direct aik hi file me Pura kaam ap rakh sakhtay hai app.ts me ap all 45 question b rakh sakhtay hai
@@knowledgelearning9352 dekhe apne jis trha q2 kia he mene sake wese hi kia to apne ye krte hue jo cmd me code run kie usse kitni saari files bn gae he to wo saari baar baar banegi phir wahi upload krni hogi saafi
bhai mera typescript ki config.jason load nahi horahe ha
mere VS code pr terminal open nhi horha can you help?
Jahan file likha hy wahan ••• three dots pe click Karen Ajay ga terminal
@@syedanamra7370 g kiya he pr open hokr close ho jarha he
Sir app.js ki file nhi create ho rhi...
Error a rha he File 'app.ts' not found.
The file is in the program because :
Root file is specified for compilation
Ap Pura visual studio band karkay Jo folder bana hay is may jakar folder open with visual studio par click kare pir TSC main.ts run kare inshallah hogye ga
Same problem compile nahi ho rha
Bro iska koi solution Mila?@@MasoodZaidi-p4e
Sir ye slide ki link share kar de
contact on Whatsapp 03052374486
sir mera app.js mai statment likhi hui show nhi hurahi
Mera bhi show nahi ho raha.
bhai 1 problem a rhi he title case me sub kuch dekh ke likha phir bhi problem a rhi he
contact on Whatsapp 03052374486
Sir yai kar kiya submit kar dai
Sir jo hum app .ts mein likhrhe hain wo app.js mein automatically likha nhi arha jesa apka likha wa arha hai why??
sir hello world bhi task me include hoga kiu k sir is me toh first task just instalation likkhi ha to ap batai me kia karun
Assalamoalaikum sir mai jb exercise krrhi hun tou jou ts mai likhrhi hun js ki file create krnay k baad usmai likha nhi araha mainay bht bar try kia plzz koi solution btadein..
Sir Baki sb folder kio bnare h mujhy smjh nhi ari ye bat pakg lock r node modules ye sb kio bnanan h Kam kia h smjhaye plzz
Reference error : console is not defined
Plzz help for this error
assalam o alaikum sir me ne program run kraua to output me title case bhi lower me hi aa raha he
apnay jab naam store karwaya hai us ka first letter capital likhna hai
Mere $ sign work nhi ker ra bhit try ker lie plz solution
apnay single code use Kiya hoga
back tick ka use karna hai
ye hai back tick ki sign ` `
salam ap sir bilal hen ?
nahe
sir BABAR
funtion k bad kia type kia hy samjh nhi aa raha
time mentioned karein
Sir ek bat samjh nahi arahi ap yeh 4 files q Bana rahay hain her bar jab Kay ek folder main hum ts ki file Bana Kar jab Kam kartay hain or tsc filename.ts karwatay hain phir node file name.Js karwatay hain tu us main bhi aram say working ho jaty hai
Wo jab hum directory ka about read karein gay phir apko samjh aeyga
sir jab me tsc -init likh rahi hun 1st ex me to error aaraha hai
Salam ya hindi translation a rhi hy terminal ki wording samjh ni a rhi😢
ok I will checked this issue
app.js ni bnra mera error ara hai
let personName:string="Babar"
console.log("lowercase:",personName.toLowerCase());
console.log("uppercase:",personName
.toLocaleUpperCase)());
console.log("titlecase:",personName.replace(/\bw/g,c=>c.toUpperCase()));
sir Q1 me error araha he
Kya error araha hai
Sir ye git kahan se download kren plz bataen
google chrome me ja kar git download likh dein first result Jo aeyga us pe click kar k further process karlein
Js kifile nahi ho Rahi q
Kya araha hai
Nzar nhi ata Sahi
Q 3 ma error araha ha
screenshot send karein Whatsapp pe 03052374486
yar thursday ko mein ne class miss kiya fever tha muje koi bata de next class ke liye kya tayari kar ke jana hai muje home work ya assignment kya hai please
sir plzz 45 question ke slide dede plz description me plzzzzzzzzzz
boss package.json file nhi bunre. mai comment bhi sahi dalra hoo. npm init -y lekin ya error ara hai.
C:\Users\fawad khan\Desktop\type script project
ame case>npm init -y
npm ERR! Invalid name: "name case"
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\fawad khan\AppData\Roaming
pm-cache\_logs\2024-02-22T21_10_07_724Z-debug.log
C:\Users\fawad khan\Desktop\type script project
ame case>
Sir group join nhe ho raha kal sy try kr raha ho plzz apna what's up num dy
Tsc main.ts node app.ts