"hello"
'hello
`Hello ${hi}`
/// js
let str = "Hello"
console.log(str.charAt(1))
/// output : ---> o
/// js
let str = "Hello"
console.log(str.at(-1))
/// output : ---> o
/// js
let str = "Hello"
let str2 = "Bilol
console.log(str.concat(" ",str2)))
/// output : ---> Hello Bilol
/// js
let str = "Hello Ahmad"
let str2 = "Bilol"
console.log(str.raplace("Ahmad",str2)))
/// output : ---> Hello Bilol
// js
let str = "Hello Ahmad and Ahmad and Ahmad"
let str2 = "Bilol"
console.log(str.raplace("Ahmad",str2)))
/// output : ---> Hello Bilol and Bilol and Bilol
// js
let str = "Hello Ahmad"
console.log(str.split()))
console.log(str.split("")))
console.log(str.split(" ")))
/// output : --->
[ "Hello Ahmad" ]
[ "H","e","l","l","o"," ","A","h","m","a","d",]
["Hello","Ahmad"]
/// js
let str = "Hello Bilol"
console.log(str.substring(1,-1))
// output : --> ello Bilo
/// js
let str = "Hello Bilol"
console.log(str.slice(-5))
// output : --> Bilol
/// js
let str = "hello
console.log(str.toLowerCase())
// output : -- > HELLO
/// js
let str = "HELLO"
console.log(str.toUpperCase())
// output : -- > hello
/// js
let str = " hello "
console.log(str.totrim())
// output : -- > hello
/// js
let str = "hello Bilol"
console.log(str.includes("Bilol"))
console.log(str.includes("Ahmad"))
// output : -- >
true
false
/// js
let str = 25
let res = str.toString()
console.log(typeOf(res))
// output : -- > string
/// js
let str = "hello
console.log(str.indexOf("l"))
// output : -- > 2
/// js
let str = "hello
console.log(str.repeat(3," "))
// output : -- > hello hello hello
/// js
let num1 = 6.6
let num2 = 6.3
console.log(Math.round(num1))
console.log(Math.round(num2))
/// output : -->
7
6
/// js
let num1 = 6.6
let num2 = 6.3
console.log(Math.ceil(num1))
console.log(Math.ceil(num2))
/// output : -->
7
7
/// js
let num1 = 6.6
let num2 = 6.3
console.log(Math.floor(num1))
console.log(Math.floor(num2))
/// output : -->
6
6
/// js
let num1 = (1,2,3,4,5,6)
console.log(Math.max(num1))
/// output : -->
6
/// js
let num1 = (1,2,3,4,5,6)
console.log(Math.min(num1))
/// output : -->
1
/// js
let num1 = 2
console.log(Math.pow(num1,5))
/// output : -->
32
/// js
let num1 = 64
console.log(Math.sqrt(num1))
/// output : -->
8
/// js
let num1 = -12
console.log(Math.abc(num1))
/// output : -->
12
/// js
let num1 = 10
console.log(Math.floor(Math.random(num1)*10))
/// output : -->
6 , 10 , 4 , 7
/// js
let num1 = 2+"2a"
let num2 = 10
console.log(isNaN(num1))
console.log(isNaN(num2))
/// output : -->
true
false