Compare commits
3 Commits
c174bc588e
...
92189d5aa1
Author | SHA1 | Date | |
---|---|---|---|
92189d5aa1 | |||
016b5c4268 | |||
ca5c64c616 |
@ -2,3 +2,6 @@ canvas {
|
||||
image-rendering: crisp-edges;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
/* JavaScript */
|
||||
/* context.imageSmoothingEnabled = false; */
|
||||
|
@ -1,3 +1,4 @@
|
||||
# HTML
|
||||
|
||||
- [favicons.html](favicons.html)
|
||||
- [humans.txt](humans.txt)
|
||||
|
9
HTML/favicons.html
Normal file
9
HTML/favicons.html
Normal 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>
|
@ -2,6 +2,7 @@
|
||||
|
||||
## Basic
|
||||
- [Arrays](arrays.js) - работа с массивами
|
||||
- [Spread syntax](spread.js) - распаковка массива в аргументы
|
||||
|
||||
## Other
|
||||
- [Webpack](webpack.md) example config
|
||||
|
11
JavaScript/spread.js
Normal file
11
JavaScript/spread.js
Normal 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
|
Loading…
Reference in New Issue
Block a user