mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-22 11:36:23 +00:00
12 lines
146 B
Markdown
12 lines
146 B
Markdown
|
---
|
||
|
id: d30a86d5-3788-47d0-a749-08e7edce2efd
|
||
|
title: JavaScript Parameter default values
|
||
|
---
|
||
|
|
||
|
# ES6
|
||
|
|
||
|
``` javascript
|
||
|
function foo(x=0, y=0) {
|
||
|
}
|
||
|
```
|