-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscript21.js
110 lines (72 loc) · 1.68 KB
/
script21.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// string contact
// string + string -------> string
// string + number -------> string
// number + string -------> string
// number + number -------> number
let a = 10
let b = 5
let c = "hello"
console.log(a + b + c)
// number + number + string
//number + string
// string
// 15hello
console.log(c + a + b)
// string + number + number
//string + number
// string
console.log(a+c+b)
// program 2
let firstName = "chinmay"
let lastName = "deshpande"
console.log('My firstName is '+firstName+' and my lastName is '+lastName)
console.log(`My firstName is ${firstName} My lastName is ${lastName}`)
console.log(typeof 9)
console.log(typeof '9')
console.log(`${8+8}`)
// Methods and Properties
// Object ---- properties and methods
// gym ---
// action - excercise
// return - health
let fn = "chinmay"
console.log(fn)
console.log(typeof fn)
console.log(fn.length)
// toUpperCase()
let ln = "deshpande"
let ll = ln.toUpperCase()
console.log(ll)
// toLowerCase()
let lln = "Chinmay"
let q2 = lln.toLowerCase()
console.log(q2)
// includes(
let fruits = "apple"
let a1 = fruits.includes('a')
let a2 = fruits.includes('app')
let a3 = fruits.includes('App')
console.log(a1)
console.log(a2)
console.log(a3)
// indexOf()
let city = "pune"
// 0 1 2 3
// p u n e
let r1 = city.indexOf("p")
let r2 = city.indexOf("P")
console.log(r1)
console.log(r2)
// replace()
let learning = "I am learning js"
let s1 = learning.replace('js',"python")
console.log(s1)
// 10 june
// cypress - 8:30am
// playwright - 9.00
// seleniumPython - 4
// selecniumJava - 4
// postman
// javasscript
// python - dataanalysis
// mongoDb -