Compare commits

...

3 Commits

Author SHA1 Message Date
92189d5aa1
add favicon sizes example 2021-11-21 00:39:08 +03:00
016b5c4268
add spread syntax 2021-11-19 04:02:42 +03:00
ca5c64c616
add JS option 2021-11-19 03:48:34 +03:00
5 changed files with 25 additions and 0 deletions

View File

@ -2,3 +2,6 @@ canvas {
image-rendering: crisp-edges; image-rendering: crisp-edges;
image-rendering: pixelated; image-rendering: pixelated;
} }
/* JavaScript */
/* context.imageSmoothingEnabled = false; */

View File

@ -1,3 +1,4 @@
# HTML # HTML
- [favicons.html](favicons.html)
- [humans.txt](humans.txt) - [humans.txt](humans.txt)

9
HTML/favicons.html Normal file
View File

@ -0,0 +1,9 @@
<head>
<!-- Icons -->
<link rel="apple-touch-icon" sizes="180×180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="120×120" href="favicon-120x120.png">
<link rel="icon" type="image/png" sizes="32×32" href="favicon-32×32.png">
<link rel="icon" type="image/png" sizes="16×16" href="favicon-16×16.png">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="manifest" href="site.webmanifest">
</head>

View File

@ -2,6 +2,7 @@
## Basic ## Basic
- [Arrays](arrays.js) - работа с массивами - [Arrays](arrays.js) - работа с массивами
- [Spread syntax](spread.js) - распаковка массива в аргументы
## Other ## Other
- [Webpack](webpack.md) example config - [Webpack](webpack.md) example config

11
JavaScript/spread.js Normal file
View File

@ -0,0 +1,11 @@
function sum(x, y, z) {
return x + y + z;
}
const numbers = [1, 2, 3];
console.log(sum(...numbers));
// expected output: 6
console.log(sum.apply(null, numbers));
// expected output: 6