-
they start wit 03_pb_
-
pb_assessment_16_11_21:
Assessment Test of 16.11.2021 --> my solutions with explanations for the tougher tasks
-
pb_assessment_17_12_21 Assessment Test* of 17.12.21 --> my revised solutions (they passed all tests)
- seb_sol_objects-practice-4
- seb_sol_callbacks-practice
-
Bubble Sort
- algorithm with:
- do...while
- sort() array method
-
Check for character in string functions
- 5 different ways
- arrow-functions
- just true/false or
- print sentence
- for-loop, if-condition
- includes()
-
calculator
- with object constructor function
-
check function for word , number
- logical & comparison operators (including !)
- isNaN functions
-
check even or odd
- one number
- numbers 0 to n
- ternary ? :
- mod
-
Dice function
- adjustible dice roll, for dice with variable number of sides
- closure
-
endsWith
- another answer for afternoon exercise 1 01.12.2021
-
fibonacci sequence function
- for-loop
- array.push()
- recursion new
-
filter
- includes exercise 1 afternoon 01.12.2021
- filter array of strings by first char of string
-
first letter uppercase function (each word in string)
- toUpperCase ()
- split(), charAt(), push(), slice(), join()
- with for...of
- with forEach
-
Fisher Yates Algorithm
- random shuffle elements in array
-
fizzbuzz - function
- for-loop, else-if
- logical and comparison operators
-
forEach
- vowel counter in string with fallback assignment
-
geometric sequence function
- for-loop
- Math.pow()
-
get_num_array_objects_property_value
- count instances of property value from objects in array
- reduce()
- ternary
-
ladder -object with method-chaining
-
largest number in array and largest sub-array functions
- for-loop
- if-statement
- Math.max()
- spread operator ...
-
map
- show first and last character in array of strings
-
multi-dimensional array multiplication function
- nested for loop (2 loops)
- multiplication assignment operator
-
Palindrome 1.
- for-loop
- if-statement
-
Random number
- between min & max
- get a random number (e.g. useful for games)
-
reduce
- examples from 01.12.2021
-
reverse number function
- string methods split(), reverse(), join()
- number constructor Number()
-
sort stuff
- alphabetically, digits 0-9
- nested loop
- split(),join()
- sort()
-
scramble words
- from Mock exam advanced PB by James
- Fisher Yates Algorithm
- array methods
- includes()
-
sum of multiples functions
- with one and three arguments
- modulo, logical + comparison operators
- for-loop, if-condition