Sheeraz ali
cyber security researcher and web developer
Name
Age
IsCute
Breed
ARE CASE SENSITIVE
Operators
Variables
Expressions
Algorithms
0
1
2
3
4
5
6
7
8
...
0
1
2
3
4
5
6
7
8
...
"Sheeraz"
20
"Ali"
"Black"
Yes
No
?
Yes
No
?
Yes
No
?
Take out all the books
from the bag
When we know when to stop
When we don't know when to stop
Bucket have 10 clothes in it
Lets make maggie
function makeMaggie(){
}
Lets make maggie
Why would i make it two times ?
variety is the spice of life
Microwave
Maggie
Batman has a problem that he just couldn't solve the problem is he is stuck in a huge building where there are 100 criminals and civilians trapped those civilians are wearing blue T-shirts and criminals are wearing red and a bomb is ticking so he has to save them in 8 min's but he can't do it alone he needs our help. we have to write a javascript program to save all the people wearing a blue T-shirt
If a person is wearing blue Tell batman and count as saved
function genratePeople(){
let people = [];
for (let i=0; i < 101; i++){
let randint = Math.floor(Math.random() * 2 )
if( randint === 1){
people.push("red");
}else{
people.push('blue');
}
}
return people;
}
let people = genratePeople();
// Your Code Starts here use people array as an input
By Sheeraz ali
Workshop slides for javascript fundamentals at Bhopal Coders