-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoperators.js
More file actions
33 lines (30 loc) · 874 Bytes
/
operators.js
File metadata and controls
33 lines (30 loc) · 874 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
25
26
27
28
29
30
31
32
33
// let a = 2, b = 1;
// let x = " \t \n" - 2;
// let n = 5;
// // let c = ++a; // ?
// // let d = b++; // ?
// // alert(c);
// // alert(d);
// // n += 7;
// // n *= 4;
// // x = -x;
// alert(`x = ${x}`);
// // alert(`a = ${a}`);
// let a = prompt("Первое число?", 1);
// let b = prompt("Второе число?", 2);
// alert(+a + +b);
// let age = prompt("Введите возраст....", "");
// if (!(age >= 14 && age <= 90)) {
// alert('в диапазоне');
// }
// else if(Num < 0){
// alert(-1);
// }
// else{
// alert("Вне диапазона");
// }
// let result = ((a + b) < 4) ? 'Мало': 'Много';
// let message = (login == 'Сотрудник') ? 'Привет' :
// (login == 'Директор') ? 'Здравствуйте' :
// (login == '') ? 'Нет логина' :
// '';