|
1 |
| -// ============>console.log<=================== |
| 1 | +// ===============================================>console.log<=================== |
2 | 2 | // console.log kisi b data ko console me show krta he
|
3 | 3 |
|
4 | 4 |
|
|
8 | 8 | // console.log("and i am learning javascript");
|
9 | 9 |
|
10 | 10 |
|
| 11 | +// ==============================<Data types in javascript>========================================== |
| 12 | +// javascript me mukhtalif data types hoti he jese k strings, number, booleans wgera wgera |
| 13 | +// for example: |
| 14 | +// Strings:== strings ik data type he jo k just like simple text hota he lekin strings k under ager hum number ya koi or data type likhengey to wo b string bn jaega |
| 15 | +// string ko lihkney k liye double quote "" ya single quote '' use hota he is quote k under k data type ko string kehtey hen |
| 16 | + |
| 17 | + |
| 18 | +// number:======== |
| 19 | +// number simple kisi b number ko kehtey hen for example 1,3,4,5,6,7,8, |
| 20 | + |
| 21 | +// converting string into number |
| 22 | +// kisi bhi string ko number me convert krney k 3 takreeekey hen |
| 23 | + |
| 24 | +// 1=======string k start me + likhney se wo number me convert hojata he for example |
| 25 | +// "4" ye ik string he lekin is k start me + lganey se ye number me convert hojaega +"4" |
| 26 | + |
| 27 | +// 2============string k start me number likhney se wo number me convert hojaega |
| 28 | +// "4" ye ik string he lekin is k start me number() lganey se ye number me convert hojaega number("4") |
11 | 29 |
|
12 | 30 |
|
13 | 31 |
|
|
27 | 45 |
|
28 | 46 |
|
29 | 47 |
|
30 |
| -// ==================================>Comment<======================================== |
| 48 | +// =============================================>Comment<======================================== |
31 | 49 | // browser ko kisi bhi chez ko ignore krwaney k liye hum coment use krtey hen, for example agr humeny koi bhi code browser me show ya run nai krwana hota he to hum usey comment krtey he is k liye hum ye do bar slash // use krtey hen
|
32 | 50 |
|
33 | 51 |
|
34 | 52 |
|
35 |
| -// ======================>operators<================================= |
| 53 | +// ===================================================>operators<================================= |
36 | 54 | // operator use hotey hen kisi b value ko assign krney k liye, compare krney k liye or koi b arthmetc operation krney k liye just like plus+ minus- multiply * ya divide/ wgera wgera
|
37 | 55 |
|
38 | 56 | // var foodAmount = 10;
|
|
0 commit comments