Skip to content

Instantly share code, notes, and snippets.

View kozielArt's full-sized avatar

Artur Kozieł kozielArt

  • billy.dk
  • Copenhagen
View GitHub Profile
function f (arg) {
var name = arg[0];
var val = arg[1];
console.log(name, val);
};
function g (arg) {
var n = arg.name;
var v = arg.val;
console.log(n, v);
};
@kozielArt
kozielArt / gist:179f8ff502accb1b640e4468ed041406
Last active February 12, 2019 15:31
Interview question 2
const f = ([name, val]) => {
console.log(name,val)
}
const g = ({ name: n, val: v }) => {
console.log(n,v)
}
const h = ({ name, val }) => {
console.log(name, val)
@kozielArt
kozielArt / gist:58ff8444fc7c14e87d1136614299027a
Last active February 12, 2019 15:34
Interview question
const test = (...theArgs) => {
return theArgs.reduce((previous, current) => {
return previous + current;
});
};
console.log(test(1, 7, -6, '0'));
console.log(test(1, 7, '0', -6));
@kozielArt
kozielArt / README.md
Created June 8, 2018 08:36 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet