-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
74 lines (68 loc) · 2.13 KB
/
test.js
File metadata and controls
74 lines (68 loc) · 2.13 KB
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
//Bai 2:
//a)
//let a = 10
//console.log(a)
//let b = '10'
//console.log(b)
//a =20
//console.log(a)
//let pi = 3.14
//console.log(pi)
//pi = 3.14 *3
//console.log(pi)
//let hocSinh = {
//hoTen: 'Vu Duc Hung Cuong',
//tuoi: 17,
//diaChi: 'GoVap - Tphcm'
//}
//hocSinh.soDienThoai = 372003786
//hocSinh.diaChi = 'Quan 1'
//console.log('==>', hocSinh)
//let dienThoai = {
// ten: 'iPhone 14',
//hangSanXuat: 'Apple',
//mauSac: 'Trang',
//gia: '1000USD'
//}
//dienThoai.gia = '750USD'
//dienThoai.hangSanXuat = 'iPhone 14 promax'
//console.log('==>', dienThoai)
let a = 5 , b = 7
let kq = a + b
console.log(kq)
let c = 5 , d = 7
tbc = (c+d) / 2
console.log(tbc)
console.log('=============================')
let x = 3, y = 4, z = 6
console.log('x^2 + 2x + 1 =', x**2 + 2*x + 1)
console.log('x^3 - 3xy - 5y + 3y^2 =', x**3 - 3*x*y - 5*y + 3*y**2)
console.log('(xy)^2 - 2x^2*y + 13y =', (x*y)**2 - 2*x**2*y + 13*y)
console.log('4x^3 + 3xy + y^2 - (2x^2 - 3y) =', 4*x*x*x + 3*x*y + y*y - 2*x*x + 3*y)
console.log('(5x^2 / 4xy) + y^2 =', (5*x*x / 4*x*y) + y*y)
console.log('x^2 - 2zxy / y^2 + 5x - 2y^2 + 4xz^3 + z^3 =', x*x - 2*x*y*z / y*y + 5*x - 2*y*y + 4*x*z*z*z + z*z*z)
console.log('=============================')
let dk = 5
console.log('Chu vi hinh tron la: ', dk*3.14)
console.log('Dien tich hinh tron la: ', (dk/2)**2*3.14)
console.log('=============================')
let cd = 15, cr = 10
console.log('Chieu dai hcn: ', cd)
console.log('Chieu rong hcn: ', cr)
console.log('Chu vi hcn la =', (cd+cr)/2)
console.log('Dien tich hcn la =', cd*cr)
console.log('=============================')
let M = 120 //km
let T = 130/60 //gio
console.log('Toc do cua xe la', M / T, 'km/h')
console.log('=============================')
let s = 15.2 * 3
console.log('Quang duong cano di dc =', s)
console.log('=============================')
let tg = 3 + 20/60
console.log('Thoi gian o to di dc la: 11 giờ - 8 giờ 20 phút =', 3,'h 20phut =', tg,'h')
console.log('Do dai quang duong AB =', 42 * tg)
console.log('=============================')
let khoi_duoi = ( 8 + 8 + 8 )*5*6
let khoi_tren = 8*6*5
console.log('The tich cua khoi go la =', khoi_duoi + khoi_tren)