Answer the question
In order to leave comments, you need to log in
How to run javascript in phpstorm?
Hello.
Downloaded and installed the latest phpstorm 10 . I create an empty project, add a .js file to it. I write anything to the file, for example:
var username = 'Админ';
var password = 'Черный властелин';
var user;
var pass;
user = prompt('Введите логин', '');
if(user == 'Админ') {
pass = prompt('Введите пароль', '');
}
else if(user == null) {
alert('Вход отменен!');
}
else if(user != 'Админ') {
alert('Я вас не знаю');
}
else if(pass == 'Черный властелин') {
alert('Добро пожаловать');
}
else if(pass != 'Черный Властелин'){
alert('Неверный пароль');
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question