Demo entry 6655194

1

   

Submitted by anonymous on Oct 26, 2017 at 08:29
Language: JavaScript. Code size: 129 Bytes.

// Bad
let name = '';
let sayName => {
 func(name);
}

// Good
let Global = {
name: '',
sayName: () => { func(name) }
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).