D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
Alsaxian
Full window
Github gist
JS Bin // source https://jsbin.com/gihisah
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>JS Bin</title> </head> <body> <script id="jsbin-javascript"> 'use strict'; var printName = function printName(_ref) { var name = _ref.name; console.log(name); }; printName({ name: 'Max', age: 28 }); var person = { name2: 'Maxi', age: 28 }; var name2 = person.name2; console.log(name2); </script> <script id="jsbin-source-javascript" type="text/javascript">const printName = ({name}) => { console.log(name); } printName({name: 'Max', age: 28}); const person = { name2 : 'Maxi', age : 28 }; const {name2} = person; console.log(name2);</script></body> </html>