Savol:
console.log(typeof null);
console.log(typeof []); console.log(typeof NaN); Natijasi qanday chiqadi?
console.log(typeof null);
console.log(typeof []); console.log(typeof NaN); Natijasi qanday chiqadi?
Anonymous Quiz
50%
object, object, number
33%
null, array, NaN
0%
undefined, object, number
17%
object, array, undefined
// Savol:
console.log(0 == false);
console.log(0 === false);
console.log(0 == false);
console.log(0 === false);
Anonymous Quiz
0%
true true
17%
false true
67%
true false
17%
false false
๐ Test 3:
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 1000); } โ Ushbu kod konsolda nima chiqaradi?
for (var i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 1000); } โ Ushbu kod konsolda nima chiqaradi?
Anonymous Quiz
67%
0, 1, 2
17%
3, 3, 3
0%
0, 0, 0
17%
โ Error (ReferenceError)
๐ Test 4:
const arr = [1, 2, 3, 4];
console.log(arr.map(x => x * 2)); console.log(arr.filter(x => x % 2 === 0)); console.log(arr.reduce((a, b) => a + b)); โ Ushbu kod konsolda nima chiqaradi?
const arr = [1, 2, 3, 4];
console.log(arr.map(x => x * 2)); console.log(arr.filter(x => x % 2 === 0)); console.log(arr.reduce((a, b) => a + b)); โ Ushbu kod konsolda nima chiqaradi?
Anonymous Quiz
100%
[2, 4, 6, 8], [2, 4], 10
0%
[1, 2, 3, 4], [1, 3], 24
0%
[2, 4, 6, 8], [1, 3], 24
0%
[1, 4, 9, 16], [2, 4], 10
๐ Test 5:
console.log(a);
var a = 5; console.log(b); let b = 10; โ Ushbu kodning natijasi qanday boโladi?
console.log(a);
var a = 5; console.log(b); let b = 10; โ Ushbu kodning natijasi qanday boโladi?
Anonymous Quiz
0%
undefined 10
0%
5 10
100%
undefined ReferenceError
0%
ReferenceError ReferenceError
Vazifa:
Masalan:
uniqueInOrder('AAAABBBCCDAABBB') == ['A', 'B', 'C', 'D', 'A', 'B']
uniqueInOrder('ABBCcAD') == ['A', 'B', 'C', 'c', 'A', 'D']
uniqueInOrder([1,2,2,3,3]) == [1, 2, 3]
```
yechimi commentga yozing!
unique_in_order nomli funksiya yozing. Bu funksiya argument sifatida berilgan ketma-ketlikni (string yoki arrayni) qabul qiladi va bir xil qiymat yonma-yon kelgan boโlsa, faqat bittasini qoldirib, asl tartibni saqlagan holda yangi roโyxat qaytaradi.Masalan:
uniqueInOrder('AAAABBBCCDAABBB') == ['A', 'B', 'C', 'D', 'A', 'B']
uniqueInOrder('ABBCcAD') == ['A', 'B', 'C', 'c', 'A', 'D']
uniqueInOrder([1,2,2,3,3]) == [1, 2, 3]
```
yechimi commentga yozing!
๐ป Our Software Project Journey
Our team started a new project two months ago.
The main goal was to build a simple application for managing online accounts.
First, we created a repository on GitHub and started writing code in JavaScript.
Our developer wrote the main function, while the designer worked on the interface.
After one week, we had our first commit and tested it in the environment.
Then, we started our first sprint with clear tasks from the project backlog.
Our deadline was tight, but the teamwork helped us stay organized.
Every week, we received feedback from stakeholders and made small updates.
During the review meeting, the project manager praised our progress.
Finally, we delivered all deliverables before the final deadline, and the application went live!
Our team started a new project two months ago.
The main goal was to build a simple application for managing online accounts.
First, we created a repository on GitHub and started writing code in JavaScript.
Our developer wrote the main function, while the designer worked on the interface.
After one week, we had our first commit and tested it in the environment.
Then, we started our first sprint with clear tasks from the project backlog.
Our deadline was tight, but the teamwork helped us stay organized.
Every week, we received feedback from stakeholders and made small updates.
During the review meeting, the project manager praised our progress.
Finally, we delivered all deliverables before the final deadline, and the application went live!
1. What was the main goal of the project?
Anonymous Quiz
0%
A) To learn a new language
100%
B) To build an online account management app
0%
C) To design a website
0%
D) To fix a bug
2. Where did the team create the repository?
Anonymous Quiz
0%
A) On Bitbucket
0%
B) On GitLab
100%
C) On GitHub
0%
D) On VS Code
3. Who worked on the interface?
Anonymous Quiz
0%
A) The developer
100%
B) The designer
0%
C) The manager
0%
D) The stakeholder
4. What programming language did the team use?
Anonymous Quiz
0%
A) Python
0%
B) Java
100%
C) JavaScript
0%
D) C#
5. What does the word backlog mean in a project?
Anonymous Quiz
0%
A) A list of completed tasks
100%
B) A list of planned tasks
0%
C) A bug report
0%
D) A design system
6. What helped the team stay organized during the sprint?
Anonymous Quiz
100%
A) Teamwork
0%
B) Feedback
0%
C) Coffee
0%
D) Stakeholders
7. Who gave feedback on the project?
Anonymous Quiz
0%
A) The designer
0%
B) The developer
100%
C) The stakeholders
0%
D) The manager