Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exercises #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions BDSimeonov19/14-6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function ageCheck(age) {
if(age > 18)
return true;
else
return "Did parents allow you?";
}
17 changes: 17 additions & 0 deletions BDSimeonov19/14-7.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function ask(question, yes, no) {
if (confirm(question)) yes()
else no();
}

ask( "Do you agree?",

() => {
alert("You agreed.");
},

() => {
alert("You canceled the execution.");
}

);

15 changes: 15 additions & 0 deletions BDSimeonov19/14-8.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
function ask(question, yes, no) {
if (confirm(question)) yes();
else no();
};

let showOk = () => {
alert("You agreed.");
};

let showCacel = () => {
alert("You canceled the execution.");
};

ask( "Do you agree?", showOk, showCacel);

7 changes: 0 additions & 7 deletions IVBarzev19/lab1.js

This file was deleted.

5 changes: 0 additions & 5 deletions IVBarzev19/lab2.js

This file was deleted.

3 changes: 0 additions & 3 deletions IVBarzev19/lab3.js

This file was deleted.

9 changes: 0 additions & 9 deletions IVBarzev19/lab4.js

This file was deleted.

10 changes: 0 additions & 10 deletions IVBarzev19/lab5.js

This file was deleted.

8 changes: 0 additions & 8 deletions IVBarzev19/lab6.js

This file was deleted.