Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Шаламова Лилия #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LiliyaShalamova wants to merge 48 commits into urfu-2016:master from LiliyaShalamova:master
Closed
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
575a59d
Первый вариант
Oct 17, 2016
16493c3
Синтаксис
Oct 17, 2016
843240e
Синтаксис 2
Oct 17, 2016
98f41f1
Синтаксис 3
Oct 17, 2016
b555476
Синтаксис 4
Oct 17, 2016
bd95665
Синтаксис 5
Oct 17, 2016
0bbee53
Синтаксис 6
Oct 17, 2016
bf57b9e
Синтаксис 7
Oct 17, 2016
8ea188c
Синтаксис 8
Oct 17, 2016
b378f42
Тесты 2
Oct 17, 2016
0f9db84
Тесты 3
Oct 17, 2016
040d463
Линтинг
Oct 17, 2016
2a6285b
Тесты
Oct 17, 2016
48ae100
Тесты
Oct 17, 2016
65f604c
Линтинг
Oct 17, 2016
7674b86
Тесты
Oct 17, 2016
81891a6
Тесты
Oct 17, 2016
342dbc7
Тесты
Oct 17, 2016
020d31b
Линтинг
Oct 17, 2016
2fb73a5
Тесты
Oct 17, 2016
62ad7b1
Тесты
Oct 17, 2016
5646560
Тесты
Oct 17, 2016
bde073a
Тесты
Oct 17, 2016
2939037
Тесты
Oct 17, 2016
97073ef
Тесты
Oct 17, 2016
43e93de
Тесты
Oct 17, 2016
bca954a
Тесты
Oct 17, 2016
3d35337
Тесты
Oct 17, 2016
d0108e5
Тесты
Oct 17, 2016
62647a0
Тесты
Oct 17, 2016
5e4fb93
Тесты
Oct 17, 2016
a88a1ff
Тесты
Oct 17, 2016
8ef7549
Тесты
Oct 17, 2016
d9c6e10
Тесты
Oct 17, 2016
580b073
Тесты
Oct 17, 2016
334364f
Тесты
Oct 17, 2016
612ac96
Тесты
Oct 17, 2016
2296f1f
Тесты
Oct 17, 2016
6d0c0d6
Тесты
Oct 17, 2016
5bb6382
Тесты
Oct 17, 2016
d227fcb
Тесты
Oct 17, 2016
8839ced
Тесты
Oct 17, 2016
dec7828
Тесты
Oct 17, 2016
bc4f0bb
Тесты
Oct 17, 2016
5b611ee
Тесты
Oct 17, 2016
dad0625
Тесты
Oct 17, 2016
6bdc77f
Тесты
Oct 17, 2016
97be0f1
Тесты
Oct 17, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Тесты 2
  • Loading branch information
Лилия Шаламова authored and Лилия Шаламова committed Oct 17, 2016
commit b378f42eb2d7def1d770eebd296bbc0dfd711225
4 changes: 3 additions & 1 deletion phone-book.js
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var phoneBook = Object();
*/
exports.add = function (phone, name, email) {
if (name && checkPhone(phone) && name.length > 0) {
if (!phoneBook.phone) {
if (!phoneBook[phone]) {
createContact(phone, name, email);

return true;
Expand Down Expand Up @@ -59,6 +59,8 @@ exports.update = function (phone, name, email) {
return true;
}
phoneBook[phone].email = email;

return true;
}

return false;
Expand Down

AltStyle によって変換されたページ (->オリジナル) /