What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-22 12:10:30
arrow functions basic usages in javascript
// An empty arrow function returns undefined let empty = () => {}; (() => 'foobar')(); // Returns "foobar" // (this is an Immediately Invoked Function Expression) var simple = a => a > 15 ? 15 : a; simple(16); // 15 simple(10); // ... Add solution -
Other 2021-11-22 12:10:25
arrow functions basic usages in javascript
// An empty arrow function returns undefined let empty = () => {}; (() => 'foobar')(); // Returns "foobar" // (this is an Immediately Invoked Function Expression) var simple = a => a > 15 ? 15 : a; simple(16); // 15 simple(10); // ... Add solution -
Other 2021-11-22 12:10:17
arrow functions basic usages in javascript
// An empty arrow function returns undefined let empty = () => {}; (() => 'foobar')(); // Returns "foobar" // (this is an Immediately Invoked Function Expression) var simple = a => a > 15 ? 15 : a; simple(16); // 15 simple(10); // ... Add solution -
Other 2021-11-22 12:09:57
arrow functions basic usages in javascript
// An empty arrow function returns undefined let empty = () => {}; (() => 'foobar')(); // Returns "foobar" // (this is an Immediately Invoked Function Expression) var simple = a => a > 15 ? 15 : a; simple(16); // 15 simple(10); // ... Add solution -
Other 2021-11-22 12:09:56
arrow functions basic usages in javascript
// An empty arrow function returns undefined let empty = () => {}; (() => 'foobar')(); // Returns "foobar" // (this is an Immediately Invoked Function Expression) var simple = a => a > 15 ? 15 : a; simple(16); // 15 simple(10); // ... Add solution -
Other 2021-11-19 11:29:22
Python Program to Count Number of Digits in a Number Using Recursion
// Traditional Function function (a){ return a + 100; } // Arrow Function Break Down // 1. Remove the word "function" and place arrow between the argument and opening body bracket (a) => { return a + 100; } // 2. Remove the body bracke... Add solution -
Other 2021-11-11 10:20:12
converting regular function to arrow function
// Traditional Function function (a){ return a + 100; } // Arrow Function Break Down // 1. Remove the word "function" and place arrow between the argument and opening body bracket (a) => { return a + 100; } // 2. Remove the body bracke... Add solution -
Javascript 2021-11-08 18:35:11
javascript codegolf
x|0 //Round x down func`arg` //Call function with one string argument getContext`2d`; // ^ `rgb(${r}, ${g}, ${b})` //Template literals C //together with <canvas id=C> instead of document.getElementById("C"); 1e3 //Shorter than 1000 1e-3 //... Add solution
Best helpers
Ranking is empty