Skip to content

Commit c4f093e

Browse files
committed
this is 8th oct
1 parent d7a242e commit c4f093e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

prakar_badlo.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// here we will be doing the type conversion of the value in the form of the
2+
//explicit type of conversion of the value that will happen in them
3+
4+
console.log(Number("3"))
5+
// here you cannot write the Number("3") as numer("3")
6+
//because javascript is a case sensitive language where NUmber("3")is treated as s case sensitive javscroiip
7+
//and the javascript is a again a case sensitive language where being a case sensitive is a big issue
8+
console.log(String(false))
9+
let n=1223.44455
10+
n.toFixed(2)
11+
console.log(n)
12+
// this is a method through which i can basically do the explict
13+
// conversion of the value where the number is basically rounded off to the closest decimila place where i amtelling it to be rounded off to
14+
// this is the way through which i cna basically when i can do the type casting in a ecxplicit manner
15+
//n.toExponential(3);
16+
console.log(n)
17+
let m=n.toPrecision(4)
18+
console.log(m)
19+
20+
console.log(Number("475"))
21+
console.log(parseInt("546ghkghd"))
22+
23+
let o= "2375sjshhj0"
24+
t=parseInt.o
25+
console.log(t)

0 commit comments

Comments
 (0)