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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>функцию, getLocalDay(date) которая возвращает день недели для даты date.</title> | |
</head> | |
<body> | |
<script> | |
"use strict"; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>функцию getWeekDay(date), | |
которая выводит текущий день недели в коротком формате ‘пн’, ‘вт’, … ‘вс’.</title> | |
</head> | |
<body> | |
<script> | |
"use strict"; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<script> | |
"use strict" | |
var list = { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>код, который отсортирует массив объектов people по полю age..</title> | |
</head> | |
<body> | |
<script> | |
'use strict' | |
var vasya = { name: "Вася", age: 23 }; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>функцию sort для того, | |
чтобы «перетрясти» элементы массива в случайном порядке.</title> | |
</head> | |
<body> | |
<script> | |
'use strict' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>массив arrSorted — из тех же элементов, но отсортированный.</title> | |
</head> | |
<body> | |
<script> | |
'use strict' | |
var arr = [ "HTML", "JavaScript", "CSS" ]; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>функция filterRangeInPlace(arr, a, b), | |
которая получает массив с числами arr и удаляет из него | |
все числа вне диапазона a..b.</title></head> | |
<body> | |
<script> | |
'use strict' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>функция removeClass(obj, cls), которая удаляет класс cls, если он есть</title> | |
</head> | |
<body> | |
<script> | |
'use strict' | |
function removeClass(obj, cls){ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>функцию camelizeTo(str), | |
которая преобразует строки вида «my-short-string» в «myShortString».</title> | |
</head> | |
<body> | |
<script> | |
"use strict" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>функция addClass(obj, cls), которая добавляет в список класс cls, | |
но только если его там еще нет:</title> | |
</head> | |
<body> | |
<script> | |
"use strict" |