var trouble = prompt('What is wrong?')
var cabel = 1
var router = 2
var computer = 3
if (trouble == 1) {
console.log('check your cabel')
} else if (trouble == 2){
console.log('check your router')
} else if (trouble == 3) {
console.log('reload your PC')
} else {
console.log('uncorrect trouble')
}
var trouble = +prompt('What is wrong?');
var CABEL = 1;
var ROUTER = 2;
var COMPUTER = 3;
switch (trouble) {
case CABEL:
console.log('check your cabel');
break;
case ROUTER:
console.log('check your router');
break;
case COMPUTER:
console.log('reload your PC');
break;
default:
console.log('uncorrect trouble');
}