Fun some time with JS
1)
-Upper to lower and lower to upper
when need any string change to upper to lower and lower to upper then used
‘toUpperCase()’ function
and toLowerCase() function.
2)
-square root
Sometime saad search want to square root for examination of javascript programming then he say to her friend sopiq then he say just use ‘Math.sqrt()’ function .
such that,
3)
-round number
Saad says hir teacher help for some tk is not fully (4.5) then then teacher say her you used ‘Math.round()’ function
4)
-random number
Saad says hir friend Atiq for quickly tall a number for gaming now then he said just write ‘Math.random()’ funcion
5)
Sabit is very happy , because to is hir special day ,so some relative give some tk for wishing her . but he not solve found who maximum given tk. then his brother tall
just use ‘Math.sum()’ function
6)
When asiq see her ceiling fan then ropiq tall java script have a Math.ceil() function for upper value count .
and down value found by Math.floor() function
7)
Sopiq tall his all friends for take their name then she used array.join() function so that all friend name at a time show her.
8) Sopiq is thinking his some friend not added then he just type ‘array.concat()’ function . then his one friend add.
9)
Sopiq is thinking asiq friend is which number then his friend asiq tall he
you used array.indexOf() function.
10 )
hi , Asiq tall me , i just say ‘Asiq is a good boy of our college ‘ then search just your name ? Asiq says his friend you just used ‘array.slice(0,5) then result my name. Ok, thank you.
11)
suddenly , sopiq special friends coming then he try to add his name added firstly then he just used ‘array.unshift()’ function