What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-28 21:07:34
hackerrank plus minus javascript
function plusMinus(arr) { let positive = arr.filter(number => number > 0).length / arr.length; let negative = arr.filter(number => number < 0).length / arr.length;; let zeronums = arr.filter(number => number == 0).length / arr.l... Add solution -
Javascript 2022-01-27 04:21:06
how to filter object in javascript
// use filter() function. Let say we have array of object. let arr = [ {name: "John", age: 30}, {name: "Grin", age: 10}, {name: "Marie", age: 50}, ]; //Now I want an array in which person having age more than 40 is not ... Add solution -
Other 2021-11-22 12:11:58
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:11:33
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:11:23
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:53
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:49
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
Best helpers
V. G.
+5
Legion123
+5
RBarryYoung
+5
Shawn Wang
+5
LBushkin
+5
OgWestside
+5
Ryan McClure
+5
Mlevin
+5
Darah
+5
Jesse McGrew
+5
PeerPaso
+5
Bad Dog
+5
Cledoux
+5
Tae-gon Kim
+5
Jacques27
+5
E meyr
+5
Pavel Savko
+5
Jude Angione
+5
Human
+5
Aeth
+5
Iwlpe
+5