01. JavaScript là gì?
- JavaScript là ngôn ngữ lập trình bổ sung tính tương tác cho các trang Web
- JavaScript là một ngôn ngữ kịch bản
- Tập lệnh JavaScript là một chương trình được đưa vào trang HTML
- Các tập lệnh JavaScript là văn bản trên các trang Web được trình duyệt Web giải thích và chạy
- JavaScript ban đầu được đặt tên và phát triển là
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
1 tại Netscape Navigator Corporation - JavaScript là
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
2 - Do làn sóng Java hoặc Java phổ biến và buzz,
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
1 đổi tên thànhlandscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
4
02. JavaScript có thể làm gì?
- Tạo một giao diện người dùng đang hoạt động
- Kiểm soát trải nghiệm người dùng dựa trên Ngày, Ngày, Giờ và Trình duyệt, v.v.
- Xác thực đầu vào của người dùng trên các biểu mẫu
- Tạo các trang HTML tùy chỉnh một cách nhanh chóng/động
- Kiểm soát tương tác và hành vi của trình duyệt Web
03. JavaScript không thể làm gì?
- JavaScript không thể nói chuyện với Cơ sở dữ liệu [Có thể với NodeJs]
- JavaScript không thể ghi vào tệp [Có thể với NodeJ]
- Theo dõi trạng thái [ngoại trừ với cookie]
- Ví dụ 1 - hoán đổi biến
- Ví dụ 2 - số tối đa
- Ví dụ 3 - Chân dung phong cảnh
- Ví dụ 4 - Thuật toán FizzBuzz
- Ví dụ 5 - Giới hạn tốc độ
- Ví dụ 6 - Vòng lặp số chẵn lẻ
- Ví dụ 7 - Đếm giá trị thật giả
- Ví dụ 8 - Khóa thuộc tính chuỗi đối tượng
- Ví dụ 9 - Tổng các bội số
- Ví dụ 10 - Mẫu vòng sao lồng nhau
- Ví dụ 11 - Điểm trung bình cộng
- Ví dụ 12 - Thẻ Bingo ngẫu nhiên
- Ví dụ 13 - Hiển thị số nguyên tố
- Ví dụ 14 - Tổng các đối số
- Ví dụ 15 - Mảng tổng các đối số
- Ví dụ 16 - Thuộc tính chỉ đọc đối tượng Circle Area
- Ví dụ 17 - Tạo mảng từ phạm vi đối số
- Ví dụ 18 - Mảng bao gồm phần tử tồn tại
- Ví dụ 19 - Mảng loại trừ giá trị cho mảng mới
- Ví dụ 20 - Số lần tìm kiếm trong mảng
- Ví dụ 21 - Mảng Nhận Max Số lớn nhất
- Ví dụ 22 - Bản đồ sắp xếp bộ lọc mảng
- Ví dụ 23 - Đối tượng Tạo sinh viên và đối tượng địa chỉ
- Ví dụ 24 - Hàm tạo đối tượng Object Factory Constructor
- Ví dụ 25 - Bình đẳng đối tượng
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
5
swapping-variables
1-swapping-variables!
Swap the values of variable
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];
Cú pháp & Ví dụ. toàn cầu
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
7
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }Ví dụ 2 số tối đa
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
8
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
1Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
3Ví dụ 3 Chân dung phong cảnhCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
40
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
4Ví dụ 4 Thuật toán FizzBuzzCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
42
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
9Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
1Ví dụ 5 Giới hạn tốc độCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
44
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
3Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];0Ví dụ 6 Vòng lặp số chẵn lẻ
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
46
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];1
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];2Ví dụ 7 Đếm các giá trị thật giả
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
48
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];3
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];4Ví dụ 8 Khóa thuộc tính chuỗi đối tượng
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
90
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];5
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];6Ví dụ 9 Tổng các bội số
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
92
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];7
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];8Ví dụ 10 Mẫu vòng lặp lồng nhau
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
94
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];9
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }0Ví dụ 11 Điểm Trung bình Điểm
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
96
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }1
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }2Ví dụ 12 Thẻ Bingo ngẫu nhiên
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
98
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }3
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }4Ví dụ 13 Hiển thị số nguyên tố
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
10
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }5
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }6Ví dụ 14 Tổng các đối số
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
12
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }7
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }8Ví dụ 15 Mảng tổng các đối số
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
14
body{ font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif; } h1, th{ font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; } table{ /* border: 2px solid #696969; border-collapse: collapse; */ font-size: 18px; } th{ width: 20%; } th, td{ padding: 10px; border: 2px solid #696969; text-align: center; } #freeSquare{ background-color: coral; }9
Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
10Ví dụ 16 Thuộc tính chỉ đọc đối tượng diện tích hình trònCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
16
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
11Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
12Ví dụ 17 Tạo mảng từ phạm vi đối sốCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
18
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
13Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
14Ví dụ 18 Mảng bao gồm phần tử tồn tạiCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
30
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
15Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
16Ví dụ 19 Mảng không bao gồm giá trị cho mảng mớiCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
32
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
17Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
18Ví dụ 20 Số lần tìm kiếm mảngCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
34
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
19Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
30 Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
36
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
31Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
32Ví dụ 22 Bản đồ sắp xếp bộ lọc mảngCú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
38
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
33Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
34Ví dụ 23 Đối tượng Tạo đối tượng Sinh viên và Địa chỉCú pháp & Ví dụ.
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];00
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
35Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
36Ví dụ 24 Tạo đối tượng Object Factory Hàm ConstructorCú pháp & Ví dụ.
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];02
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
37Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
38Ví dụ 25 Bình đẳng đối tượngCú pháp & Ví dụ.
console.log['1-swapping-variables']; let value1 = 'one'; let value2 = 'two'; // original values console.log['original', value1]; console.log['original', value2]; // swapping values let value3 = value1; value1 = value2; value2 = value3; console.log['swap', value1]; console.log['swap', value2];04
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
39Cú pháp & Ví dụ.
landscape-portrait 3-landscape-portrait! Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
6
landscape-portrait
3-landscape-portrait!
Write a function which checks given width and height, returns true [landscape] if width is greater than height and vice versa
0