Jun's public fiddles
-
Output 2 Dimension Arrays in Spinal Position
Elements of a two dimensional array are to be outputted by their spiral order.
-
Evaluating strings using Functional Programming
Evaluates strings if it meets a criteria. Combination of Higher Order Functions, Bind and array methods are used.
-
Anagram testing with functional programming
The Anagram check script uses array methods to check a word against a set of words with the same number and set of letters. The array methods eliminates the need for If statements to do conditional testing. This is the advantage of the functional programming approach
-
Sorting an array of objects
The array.sort() function compare function is able to arrange the order of ts object elements by doing comparison to its id property
-
!! Check for blank values
A cool trick in JavaScript involves the used of double exclamation marks to check if a string is not empty
-
React Native Vertical Stack Boxes
This code stacks two sets of boxes in a vertical direction. The first is stacked to the top while the second is stacked at the bottom
-
Leading and Trailing Zero with Higher Order Function
This generates a string padded with leading and trailing zeroes. A higher order function takes in the length for the generated string and the character used for padding (In this case, zer). The returned function takes in two arguments, depending on which is blank, trailing or leading zeroes is generated
-
React Native Vertical Stack Boxes
This code stacks two sets of boxes in a vertical direction. The first is stacked to the top while the second is stacked at the bottom
-
JavaScript Promise with JSON Parse
An example on JavaScript Promise with JSON parse
-
Restrict alphanumeric, forces lower to upper case
JS Script to restrict entry to alphanumeric but forces lowercase to uppercase
-
bebyqpxq
No-Library (pure JS), HTML, CSS, JavaScript