Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktWorkshops/The-JavaScript-Workshop
/ functions
Functions
169 in github.com/PacktWorkshops/The-JavaScript-Workshop
⨍
Functions
169
◇
Types & classes
8
↓ 10 callers
Function
getDigitsOfNumber
(num)
Chapter03/Exercise3.14/solution/function-declare.js:3
↓ 6 callers
Function
getRandomStringCharacter
(source)
Chapter03/Exercise3.15/solution/function-expression.js:4
↓ 6 callers
Function
getRandomStringCharacter
(source)
Chapter03/Exercise3.16/solution/function-arrow.js:1
↓ 6 callers
Function
validateString
(value)
BonusChapter02/Exercise17.06/sentence.js:3
↓ 5 callers
Method
add
(a, b)
Chapter13/Activity13.01/oop.js:6
↓ 5 callers
Function
process
(value, typeCheck, transform)
BonusChapter02/Activity17.02/sentence.js:3
↓ 5 callers
Function
toBeIdentity
(received, expected)
BonusChapter02/Activity17.02/functor_matchers.js:3
↓ 4 callers
Function
formatPrice
(value, currency)
Chapter05/Exercise5.05/index.js:1
↓ 4 callers
Function
printType
(val)
Chapter05/Exercise5.02/index.js:1
↓ 3 callers
Function
addDelay
(ms, promise)
Chapter15/Activity15.01/activity1_solution.js:1
↓ 3 callers
Function
addDelay
(ms, promise)
Chapter15/Example/addDelay.js:1
↓ 3 callers
Function
isEligible
(distance, membershipstatus)
Chapter05/Exercise5.04/index.js:1
↓ 3 callers
Function
modelStateChange
(state, action, data)
Chapter06/Activity6.01/model.js:12
↓ 3 callers
Function
validateString
(value)
BonusChapter02/Exercise17.05/sentence.js:3
↓ 3 callers
Function
validateString
(value)
BonusChapter02/Exercise17.04/sentence.js:1
↓ 2 callers
Function
add
(a, b)
BonusChapter02/Activity17.01/index.test.js:1
↓ 2 callers
Function
add
(a, b)
BonusChapter02/Exercise17.01/index.js:1
↓ 2 callers
Function
callMe
()
Chapter07/snippet-2/snippet-2.js:1
↓ 2 callers
Function
curry
(fun)
Chapter05/Exercise5.09/index.js:1
↓ 2 callers
Function
curry
(prim, fun)
Chapter05/Exercise5.08/index.js:1
↓ 2 callers
Function
divide
(a, b)
BonusChapter02/Activity17.01/index.test.js:19
↓ 2 callers
Function
getTeamImage
(teamId, imageId)
Chapter10/Exercise10.03/exercise3.js:37
↓ 2 callers
Method
info
()
Chapter13/Exercise13.02/humans.js:8
↓ 2 callers
Function
modelFindIndex
(state, id)
Chapter06/Activity6.01/model.js:3
↓ 2 callers
Function
modelFindIndex
(state, id)
Chapter05/Activity5.02/index.js:3
↓ 2 callers
Function
multiply
(a, b)
BonusChapter02/Activity17.01/index.test.js:13
↓ 2 callers
Method
pow
(a, b)
Chapter13/Activity13.01/oop.js:26
↓ 2 callers
Function
replaceListElements
* Replace element in an HTML list with an array * @param {HTMLUListElement || HTMLOListElement} listEle - HTML list UL or OL element * @param {array
Chapter04/Activity4.01/activity.js:21
↓ 2 callers
Function
replaceListElements
* Replace element in an HTML list with an array * @param {HTMLUListElement || HTMLOListElement} listEle - HTML list UL or OL element * @param {array
Chapter04/Activity4.01/solution/activity.anime.js:21
↓ 2 callers
Function
replaceListElements
* Replace element in an HTML list with an array * @param {HTMLUListElement || HTMLOListElement} listEle - HTML list UL or OL element * @param {array
Chapter04/Activity4.01/solution/activity.jquery.js:22
↓ 2 callers
Function
replaceListElements
* Replace element in an HTML list with an array * @param {HTMLUListElement || HTMLOListElement} listEle - HTML list UL or OL element * @param {array
Chapter04/Activity4.01/solution/activity.velocity.js:21
↓ 2 callers
Function
replaceListElements
* Replace element in an HTML list with an array * @param {HTMLUListElement || HTMLOListElement} listEle - HTML list UL or OL element * @param {array
Chapter03/Activity3.01/solution/activity.js:21
↓ 2 callers
Function
showStatus
(statusText)
Chapter07/Exercise7.01/event-loop.js:6
↓ 2 callers
Function
subtract
(a, b)
BonusChapter02/Activity17.01/index.test.js:7
↓ 1 callers
Function
add
()
Chapter07/Exercise7.04/exercise-4.js:12
↓ 1 callers
Function
add
()
Chapter07/Exercise7.03/exercise-3.js:12
↓ 1 callers
Function
add
(a, b)
Chapter09/Exercise9.01/first.js:1
↓ 1 callers
Function
add
(a, b)
Chapter13/Activity13.01/procedural.js:3
↓ 1 callers
Function
addDelay
(ms, promise)
Chapter15/Exercise15.03/exercise3.js:1
↓ 1 callers
Function
averageStringLength
(value)
BonusChapter02/Activity17.02/sentence.js:37
↓ 1 callers
Function
classifyImage
()
BonusChapter01/Exercise16.01/tf.js:4
↓ 1 callers
Function
classifyImage
()
BonusChapter01/Exercise16.02/tf.js:7
↓ 1 callers
Function
classifyImage
()
BonusChapter01/Exercise16.03/tf.js:9
↓ 1 callers
Function
complicatedForLoop
()
Chapter08/Exercise8.07/exercise-8_07.js:1
↓ 1 callers
Function
complicatedWhileLoop
()
Chapter08/Exercise8.07/exercise-8_07.js:13
↓ 1 callers
Function
convertToTensors
(data, targets, split)
BonusChapter01/Exercise16.04/tf.js:38
↓ 1 callers
Function
convertToTensors
(data, targets, split)
BonusChapter01/Exercise16.05/tf.js:38
↓ 1 callers
Function
convertToTensors
(data, targets, split)
BonusChapter01/Exercise16.06/tf.js:3
↓ 1 callers
Function
countdownByTwo
(num)
Chapter07/snippet-3/snippet-3.js:1
↓ 1 callers
Function
divide
(a, b)
Chapter13/Activity13.01/procedural.js:18
↓ 1 callers
Method
divide
(a, b)
Chapter13/Activity13.01/oop.js:21
↓ 1 callers
Function
doCalculation
()
Chapter07/Exercise7.01/event-loop.js:10
↓ 1 callers
Function
draw
()
Chapter08/Activity8.03/scripts.js:38
↓ 1 callers
Function
encodeParams
(params)
Chapter15/Activity15.02/players.js:25
↓ 1 callers
Function
encodeParams
(params)
Chapter15/Exercise15.02/players.js:25
↓ 1 callers
Function
encodeParams
(params)
Chapter15/Example/players.js:25
↓ 1 callers
Function
f
()
Chapter05/Exercise5.01/index.js:4
↓ 1 callers
Function
failsWithNonNumber
()
BonusChapter02/Exercise17.01/index.js:12
↓ 1 callers
Function
firstCall
()
Chapter07/snippet-1/snippet-1a.js:1
↓ 1 callers
Function
firstCall
()
Chapter07/snippet-1/snippet-1.js:1
↓ 1 callers
Function
fun
(val)
Chapter05/Exercise5.08/index.js:8
↓ 1 callers
Function
getNewShuffledArray
* Shuffles array elements * @param {array} sourceArray - Array to be shuffled. * @return {array} - New array with shuffled items
Chapter04/Activity4.01/activity.js:34
↓ 1 callers
Function
getNewShuffledArray
* Shuffles array elements * @param {array} sourceArray - Array to be shuffled. * @return {array} - New array with shuffled items
Chapter04/Activity4.01/solution/activity.anime.js:50
↓ 1 callers
Function
getNewShuffledArray
* Shuffles array elements * @param {array} sourceArray - Array to be shuffled. * @return {array} - New array with shuffled items
Chapter04/Activity4.01/solution/activity.jquery.js:44
↓ 1 callers
Function
getNewShuffledArray
* Shuffles array elements * @param {array} sourceArray - Array to be shuffled. * @return {array} - New array with shuffled items
Chapter04/Activity4.01/solution/activity.velocity.js:41
↓ 1 callers
Function
getNewShuffledArray
* Shuffles array elements * @param {array} sourceArray - Array to be shuffled. * @returns {array} - New array with shuffled items
Chapter03/Activity3.01/solution/activity.js:34
↓ 1 callers
Function
getSeedData
()
BonusChapter01/Exercise16.06/tf.js:17
↓ 1 callers
Function
getTime
()
Chapter09/Exercise9.08/public/chat.js:66
↓ 1 callers
Function
history
()
Chapter13/Activity13.01/procedural.js:28
↓ 1 callers
Method
history
()
Chapter13/Activity13.01/oop.js:31
↓ 1 callers
Method
info
()
Chapter13/Exercise13.03/humans.js:8
↓ 1 callers
Function
initWebcam
()
BonusChapter01/Exercise16.02/tf.js:24
↓ 1 callers
Function
initWebcam
()
BonusChapter01/Activity16.01/tf.js:33
↓ 1 callers
Function
initWebcam
()
BonusChapter01/Exercise16.03/tf.js:28
↓ 1 callers
Function
learnSeeds
()
BonusChapter01/Exercise16.06/tf.js:79
↓ 1 callers
Function
loadImages
()
Chapter07/Exercise7.04/exercise-4.js:4
↓ 1 callers
Function
loadImages
()
Chapter07/Exercise7.03/exercise-3.js:4
↓ 1 callers
Function
main
()
Chapter06/Exercise6.01/index.js:3
↓ 1 callers
Function
mapStringLength
(value)
BonusChapter02/Activity17.02/sentence.js:30
↓ 1 callers
Function
modelInit
()
Chapter06/Activity6.01/model.js:35
↓ 1 callers
Function
multiply
(a, b)
Chapter13/Activity13.01/procedural.js:13
↓ 1 callers
Method
multiply
(a, b)
Chapter13/Activity13.01/oop.js:16
↓ 1 callers
Function
nowCallMe
()
Chapter07/snippet-2/snippet-2.js:5
↓ 1 callers
Function
objectDetection
()
BonusChapter01/Activity16.01/tf.js:5
↓ 1 callers
Function
odd_or_even
(counter, last)
Chapter05/Exercise5.03/index.js:1
↓ 1 callers
Function
passesWithTwoNumbers
()
BonusChapter02/Exercise17.01/index.js:8
↓ 1 callers
Function
pow
(a, b)
Chapter13/Activity13.01/procedural.js:23
↓ 1 callers
Function
rejectEmptyStrings
(value)
BonusChapter02/Activity17.02/sentence.js:23
↓ 1 callers
Function
remove
()
Chapter07/Exercise7.04/exercise-4.js:16
↓ 1 callers
Function
remove
()
Chapter07/Exercise7.03/exercise-3.js:16
↓ 1 callers
Function
resetImageWrapper
()
Chapter07/Exercise7.04/exercise-4.js:21
↓ 1 callers
Function
resetImageWrapper
()
Chapter07/Exercise7.03/exercise-3.js:21
↓ 1 callers
Function
reverse
(str)
Chapter05/Exercise5.07/index.js:1
↓ 1 callers
Function
secondCall
()
Chapter07/snippet-1/snippet-1a.js:6
↓ 1 callers
Function
secondCall
()
Chapter07/snippet-1/snippet-1.js:6
↓ 1 callers
Function
sendEmail
(name, age, comments)
Chapter05/Exercise5.06/index.js:1
↓ 1 callers
Function
splitStringIntoList
(value)
BonusChapter02/Activity17.02/sentence.js:16
↓ 1 callers
Function
stackOverflow
()
Chapter07/Activity7.01/activity.js:2
↓ 1 callers
Function
subtract
(a, b)
Chapter13/Activity13.01/procedural.js:8
↓ 1 callers
Method
subtract
(a, b)
Chapter13/Activity13.01/oop.js:11
next →
1–100 of 169, ranked by callers