← All JS Chapters LoOPCode Home

04. Strings & Numbers

Text jodna, length, aur number methods — simple tools.

Is chapter me cover hoga:

1. Strings jodna

"Hello " + "World" → Hello World
Ya template style (modern): `Hello ${name}` — andar variable ghusa sakte ho.

2. Useful string tools

• text.length — kitne characters
• text.toUpperCase() — CAPITAL
• text.toLowerCase() — chhote letters

3. Numbers

• Math.round(4.6) → 5
• Math.max(2, 9, 4) → 9
• Number("42") — text ko number banana

Practice — string & number

Apna message banao aur length dekho.