What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-21 19:44:10
modify array js
Using a FOR loop, write a function addNumber which adds the argument n to each number in the array arr and returns the updated arr: const addNumber=(arr, n)=>{ let arr1=[]; for(let i=0;i<Math.max(arr.length);i++){ arr1.push((arr[i]||0)+n)... Add solution -
Javascript 2021-11-21 14:40:31
code to convert rgb to hsl color
// see: https://en.wikipedia.org/wiki/RGB_color_model // see: https://en.wikipedia.org/wiki/HSL_and_HSV // expects R, G, B, Cmax and chroma to be in number interval [0, 1] // returns undefined if chroma is 0, or a number interval [0, 360] degrees functio... Add solution -
C# 2021-11-21 07:34:15
c# max two values
<T> max = Math.Max(<T>,<T>); Add solution -
Other 2021-11-19 08:46:12
stacked card list view' in flutter
import 'package:flutter/material.dart'; import 'dart:math' as math; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return ... Add solution
Best helpers
Ranking is empty