mirror of
https://github.com/yawaflua/some-js-work.git
synced 2025-12-09 20:09:28 +02:00
1.0.2
This commit is contained in:
3
index.js
3
index.js
@@ -2,10 +2,13 @@
|
|||||||
function sayHi(){
|
function sayHi(){
|
||||||
alert('Hello World!');
|
alert('Hello World!');
|
||||||
}
|
}
|
||||||
|
// create function
|
||||||
sayHi()
|
sayHi()
|
||||||
let a = confirm('Do u like my work')
|
let a = confirm('Do u like my work')
|
||||||
|
// asking
|
||||||
if (a == true){
|
if (a == true){
|
||||||
alert('Thanks!!')
|
alert('Thanks!!')
|
||||||
}else{
|
}else{
|
||||||
alert('Ok, sorry')
|
alert('Ok, sorry')
|
||||||
}
|
}
|
||||||
|
// if/else
|
||||||
|
|||||||
Reference in New Issue
Block a user