mirror of
https://github.com/yawaflua/some-js-work.git
synced 2025-12-08 19:49:34 +02:00
15 lines
217 B
JavaScript
15 lines
217 B
JavaScript
'use strict';
|
|
function sayHi(){
|
|
alert('Hello World!');
|
|
}
|
|
// create function
|
|
sayHi()
|
|
let a = confirm('Do u like my work')
|
|
// asking
|
|
if (a == true){
|
|
alert('Thanks!!')
|
|
}else{
|
|
alert('Ok, sorry')
|
|
}
|
|
// if/else
|