MCPcopy Create free account

hub / github.com/appacademy/Module-1-Resources / functions

Functions306 in github.com/appacademy/Module-1-Resources

↓ 2 callersFunctioncatBuilder
(name, color, toys)
w2/d1/pojo_demos/pojo_basics/05-cat_builder.js:6
↓ 2 callersFunctionchoosePrimes
(nums)
w2/solutions/advanced-array-methods/advanced-array/problems/15-choose-primes.js:34
↓ 2 callersFunctioncountScores
Write a function `countScores(people)` that takes in an array of score objects (people) as its input. A score object has two key-value pairs: the scor
w2/solutions/pojo-practice/pojo-basics/problems/11-count-scores.js:30
↓ 2 callersFunctioncoupon
Write a function named: coupon(discount). The coupon function will intake a number to apply as a discount, and will return a function that accepts an
w2/solutions/scope-problems-without-context/problems/16-coupon.js:17
↓ 2 callersFunctioncurriedSum
Currying is the process of decomposing a function that takes multiple arguments into one that takes single arguments successively until it has the suf
w2/solutions/scope-problems-without-context/problems/20-curried-sum.js:45
↓ 2 callersFunctiondeepDup
A shallow copy makes a copy of the reference to X (an array), into Y. If we were to say something like this for example: let x = [ [1], [2, 3] ]; let
w3/d3/solutions/recursion-pt4/problems/14-deep-dup.js:37
↓ 2 callersFunctiondeleteKeysAndValues
(array, keyToDelete)
w2/solutions/pojo-fruits/problems/02-manipulate-fruit-objects.js:88
↓ 2 callersFunctiondoesKeyExist
Write a function `doesKeyExist(obj, key)` that takes in an object and a key and returns true if the key is inside the object and false if the key is n
w2/solutions/pojo-practice/pojo-basics/problems/05-does-key-exist.js:13
↓ 2 callersFunctiongetFullName
Write a function `getFullName(person)` that takes in an person object and returns a string containing their full name. Examples: let p1 = {firstName
w2/solutions/pojo-practice/pojo-basics/problems/04-get-full-name.js:13
↓ 2 callersFunctionhiddenCounter
Write a function named `hiddenCounter()`. This function will do two things - first it will define a count variable, then it will return a function. W
w2/solutions/scope-problems-without-context/problems/08-hidden-counter.js:18
↓ 2 callersFunctioninterrupter
Write a function named interrupter that accepts a single parameter `interruptingWord`: `interrupter(interruptingWord)` The interrupter function sho
w2/solutions/scope-problems-without-context/problems/09-interrupter.js:22
↓ 2 callersFunctionkeysInObject
Write a function called `keysInObject(obj)` that takes in an object and returns an array of all the keys within that Object. Do this once using usin
w2/solutions/pojo-practice/pojo-basics/problems/01-keys-in-object.js:15
↓ 2 callersFunctionlazyAdder
Write a function named: lazyAdder(firstNum). The lazyAdder function will accept a number and return a function. When the function returned by lazyAdde
w2/solutions/scope-problems-without-context/problems/11-lazy-adder.js:25
↓ 2 callersFunctionlongWords
(words)
w2/solutions/advanced-array-methods/advanced-array/problems/03-long-words-filter.js:16
↓ 2 callersFunctionmakeTree
(categories, parent)
w3/d3/solutions/recursion-pt4/problems/16-bonus-make-tree.js:68
↓ 2 callersFunctionmapMutator
Write a function `mapMutator` that accepts an array and a callback as arguments. The function should pass each element and index into the callback and
w2/solutions/callbacks/try-out-callbacks/problems/14-map-mutator.js:21
↓ 2 callersFunctionmaxWithReduce
(nums)
w2/solutions/advanced-array-methods/advanced-array/problems/07-max-reduce.js:17
↓ 2 callersFunctionminValueCallback
Write a function `minValueCallback` that accepts an array and an optional callback as arguments. If a callback is not passed in, then the function sho
w2/solutions/callbacks/try-out-callbacks/problems/13-min-value-callback.js:13
↓ 2 callersFunctionmirrorArray
(array)
w2/solutions/scope-problems-without-context/problems/05-arrow-mirror-array.js:11
↓ 2 callersFunctionmyForEach
Write a function `myForEach` that accepts an array and a callback as arguments. The function should call the callback on each element of the array, pa
w2/solutions/callbacks/try-out-callbacks/problems/01-my-for-each.js:24
↓ 2 callersFunctionpostpone
Write a function, `postpone`, that accepts a callback and a delay in milliseconds as arguments. `postpone` should return a new function. When the ret
w3/d4/solutions/timeout-pt2/problems/05-postpone.js:25
↓ 2 callersFunctionproductWithReduce
(nums)
w2/solutions/advanced-array-methods/advanced-array/problems/08-product-reduce.js:18
↓ 2 callersFunctionreject
Write a function `reject` that accepts an array and callback as arguments. The function should call the callback for each element of the array, passin
w2/solutions/callbacks/try-out-callbacks/problems/06-reject.js:24
↓ 2 callersFunctionremoveEWords
(sentence)
w2/solutions/advanced-array-methods/advanced-array/problems/04-remove-e-words-filter.js:15
↓ 2 callersFunctionrotate
(array, num)
w1/d3/rotate.js:5
↓ 2 callersFunctionsentenceMapper
(sentence, cb)
w2/solutions/callbacks/try-out-callbacks/problems/15-sentence-mapper.js:28
↓ 2 callersFunctionsetKeyInObject
Write a function `setKeyInObject(obj, string, value)` that takes in three parameters. The first parameter is an object, the second parameter will be
w2/solutions/pojo-practice/pojo-basics/problems/03-set-key-in-object.js:16
↓ 2 callersFunctionsetSecondsTimeout
Recall that the built-in `setTimeout` function accepts a delay in milliseconds. It would be cool if we had a version that could accept the delay in se
w3/d4/solutions/timeout-pt1/problems/01-set-seconds-timeout.js:26
↓ 2 callersFunctionsuffixCipher
Write a function `suffixCipher` that accepts a sentence and object as arguments. The object contains suffixes as keys and callbacks as values. The `su
w2/solutions/callbacks/try-out-callbacks/problems/16-suffix-cipher.js:34
↓ 2 callersFunctionsumWithReduce
(nums)
w2/solutions/advanced-array-methods/advanced-array/problems/06-sum-reduce.js:15
↓ 2 callersFunctiontwoDimensionalProduct
(arr)
w2/solutions/advanced-array-methods/advanced-array/problems/18-two-d-product.js:26
↓ 2 callersFunctionvaluePair
Write a function `valuePair(obj1, obj2, key)` that takes in two objects and a key (string). The function should return an array containing the corresp
w2/solutions/pojo-practice/pojo-basics/problems/07-value-pair.js:13
↓ 2 callersFunctionvaluesInObject
Write a function called `valuesInObject(obj)` that takes in an object and returns an array of all the values within that Object. Do this once usin
w2/solutions/pojo-practice/pojo-basics/problems/02-values-in-object.js:17
↓ 2 callersFunctionvariableAsKey
(obj, str)
w2/d1/pojo_demos/pojo_basics/03-using_variables_as_keys.js:15
↓ 2 callersFunctionxorSelect
(array, cb1, cb2)
w2/solutions/callbacks/try-out-callbacks/problems/17-xor-select.js:34
↓ 2 callersFunctionyeller
(words)
w2/solutions/advanced-array-methods/advanced-array/problems/10-yeller-map.js:15
↓ 1 callersFunctionadd
(num1,num2)
w1/d4/helper_functions.js:137
↓ 1 callersFunctionaddItem
()
w2/d4/closure.js:64
↓ 1 callersFunctionbar
(word)
w3/d1/lecture.js:9
↓ 1 callersFunctionbar
(word)
w3/d1/debugger.js:59
↓ 1 callersFunctionbar
()
w3/d2/lecture.js:26
↓ 1 callersFunctionbaz
(word)
w3/d1/lecture.js:15
↓ 1 callersFunctionbaz
(word)
w3/d1/debugger.js:69
↓ 1 callersFunctionbaz
()
w3/d2/lecture.js:33
↓ 1 callersFunctionbaz
()
w3/d4/lecture.js:161
↓ 1 callersFunctiondeepDup
A shallow copy makes a copy of the reference to X (an array), into Y. If we were to say something like this for example: let x = [ [1], [2, 3] ]; let
w3/d3/deepDup.js:37
↓ 1 callersFunctiondeposit
(intialBalance, amount)
w1/d4/helper_functions.js:60
↓ 1 callersFunctiondestructure
({ name })
w2/d2/destructuring.js:107
↓ 1 callersFunctiondivide
(num1,num2)
w1/d4/helper_functions.js:149
↓ 1 callersFunctiondoubler
(n)
w2/solutions/callbacks/try-out-callbacks/test/19-greater-callback-value-test.js:6
↓ 1 callersFunctionfoo
(word)
w3/d1/debugger.js:53
↓ 1 callersFunctionfruitNames
(fruits)
w2/solutions/pojo-fruits/problems/01-fruit-data-structure.js:62
↓ 1 callersFunctionfuncTimer
Write a function named `funcTimer(time, func)` that will allow you to hand in a function and a number representing milliseconds. The `funcTimer` shoul
w2/solutions/scope-problems-without-context/problems/07-set-time-out.js:21
↓ 1 callersFunctiongetFruitKeys
(fruits)
w2/solutions/pojo-fruits/problems/01-fruit-data-structure.js:76
↓ 1 callersFunctiongetNutritionsKeys
(fruits)
w2/solutions/pojo-fruits/problems/01-fruit-data-structure.js:93
↓ 1 callersFunctiongetSecondObjValues
w2/d3/nestedArr-repl.js:20
↓ 1 callersFunctiongetSecondObjValues
(arr)
w2/d1/pojo_demos/pojo_basics/07-nested_array_of_objects.js:14
↓ 1 callersFunctionhello
()
w3/d1/string-interpolation.js:31
↓ 1 callersFunctionhoisted
()
w3/d3/hoisting.js:30
↓ 1 callersFunctionindexFruitObject
(index, fruits)
w2/solutions/pojo-fruits/problems/01-fruit-data-structure.js:45
↓ 1 callersFunctionisPrime
(num)
w2/solutions/advanced-array-methods/advanced-array/problems/15-choose-primes.js:20
↓ 1 callersFunctionisVowel
(char)
w1/d4/eod.js:70
↓ 1 callersFunctioniterateThroughWordBackwards
(word)
w1/d2/loop.js:74
↓ 1 callersFunctionlastFruitObject
(fruits)
w2/solutions/pojo-fruits/problems/01-fruit-data-structure.js:28
↓ 1 callersFunctionmath
(num1,num2, operation)
w1/d4/helper_functions.js:123
↓ 1 callersFunctionmostVowels
(sentence)
w1/d4/mostVowels.js:27
↓ 1 callersFunctionmultiply
(num1, num2, num3, banana)
w1/d2/functions.js:69
↓ 1 callersFunctionmultiply
(num1,num2)
w1/d4/helper_functions.js:145
↓ 1 callersFunctionmyEvery
(arr, cb)
w2/d3/repl.js:35
↓ 1 callersFunctionmyFilter
(array, callback)
w2/d3/repl.js:5
↓ 1 callersFunctionmyFunc
()
w2/d4/scope.js:43
↓ 1 callersFunctionmyFunc
()
w2/d4/scratch.js:5
↓ 1 callersFunctionmyFunc2
()
w2/d4/scope.js:71
↓ 1 callersFunctionmyFunc3
()
w2/d4/scope.js:81
↓ 1 callersFunctionmyFunc4
()
w2/d4/scope.js:275
↓ 1 callersFunctionoven
()
w2/d4/closure.js:45
↓ 1 callersFunctionprintObject
(obj)
w2/d1/pojo_demos/pojo_iteration/01-iterate_through_obj.js:8
↓ 1 callersFunctionprintOuterNumsFirst
You are given a recursive function, `printOuterNumsFirst()`, that takes an array of numbers, and prints each number. If the length of the array is odd
w3/d5/aa03-assessment-practice-02-print-outer-nums-first/problems/02-print-outer-nums-first.js:32
↓ 1 callersFunctionprintOwners
w2/d1/pojo_demos/pojo_iteration/06-using_Object.entries.js:18
↓ 1 callersFunctionprintValues
w2/d1/pojo_demos/pojo_iteration/04-using_Object.values.js:13
↓ 1 callersFunctionprintValuesRefactored
w2/d1/pojo_demos/pojo_iteration/07-refactoring_iteration.js:30
↓ 1 callersFunctionrecurse
(number)
w3/d2/recursion.js:75
↓ 1 callersFunctionrecursiveFunc
(num)
w3/d1/lecture.js:47
↓ 1 callersFunctionremoveLastVowel
(word)
w2/solutions/advanced-array-methods/advanced-array/problems/16-hipsterfy.js:16
↓ 1 callersFunctionreverseString
(string)
w3/d2/recursion.js:135
↓ 1 callersFunctionsandwichMaker
Let's practice writing closures by creating a function named `sandwichMaker()`. This function will return another function that will accept a string t
w2/solutions/scope-problems-without-context/problems/06-closure-sandwiches.js:20
↓ 1 callersFunctionsayGoodbye
(name)
w3/d5/scratch.js:7
↓ 1 callersFunctionsayHello2
()
w1/d3/function-expressions.js:73
↓ 1 callersFunctionsomethingSlow
(n, memo = {})
w3/d4/lecture.js:140
↓ 1 callersFunctionsort
Write a recursive function called `sort` that takes an array of integers, `nums` and returns an array containing those integers sorted from least to g
w3/d2/sort.js:24
↓ 1 callersFunctionsubtract
(num1,num2)
w1/d4/helper_functions.js:141
↓ 1 callersFunctionsumArrayWDefault
(arr, sum = 0)
w3/d2/sum-array.js:43
↓ 1 callersFunctionsundaeOrder
(topping2)
w2/d4/closure-repl.js:22
↓ 1 callersFunctiontestingConst
()
w2/d4/scope.js:234
↓ 1 callersFunctiontestingLet
()
w2/d4/scope.js:194
↓ 1 callersFunctiontestingVar
()
w2/d4/scope.js:154
↓ 1 callersFunctiontime
(count)
w3/d4/setInterval.js:31
↓ 1 callersFunctiontranslateWord
(word)
w2/solutions/advanced-array-methods/advanced-array/problems/17-repeating-translate.js:46
↓ 1 callersFunctionupdateIdValues
(array)
w2/solutions/pojo-fruits/problems/02-manipulate-fruit-objects.js:66
↓ 1 callersFunctionupdateKeyName
(array, oldKey, newKey)
w2/solutions/pojo-fruits/problems/02-manipulate-fruit-objects.js:43
← previousnext →101–200 of 306, ranked by callers