-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask03.html
More file actions
24 lines (21 loc) · 478 Bytes
/
task03.html
File metadata and controls
24 lines (21 loc) · 478 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script>
'use strict'
let a = -5
let b = -6
if(a >= 0 && b >= 0){
alert(a-b)
} else if(a < 0 && b < 0){
alert(a*b)
} else { //Условие, которое будет выполняться при разных знаках
alert(a+b)
}
</script>
</body>
</html>