Last active
August 29, 2015 14:15
-
-
Save albburtsev/77f6653d5f1b0613ed61 to your computer and use it in GitHub Desktop.
Задачи на собеседовании в oorraa.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Задачи на позицию «frontend-разработчик» | |
*/ | |
// --------- #1 ---------- | |
// Дан список сотрудников в виде массива | |
var employees = [{ | |
sex: 'male', | |
salary: 100 | |
}, { | |
sex: 'female', | |
salary: 150 | |
}, { | |
sex: 'female', | |
salary: 200 | |
}, { | |
sex: 'male', | |
salary: 100 | |
}, { | |
sex: 'female', | |
salary: 300 | |
}]; | |
// Посчитать общий месячный заработок всех сотрудниц. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --------- #2 ---------- | |
// Строка в формате markdown: | |
var markdown = "**luke** i'm your **father**"; | |
// Написать скрипт для преобразования этой строки в HTML: | |
// "<strong>luke</strong> i'm your <strong>father</strong>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment