camelCase
Write a function that takes a string input (which contains either spaces, underscores, or hyphens/dashes between words, but no combination of the two) and turn it into the camelCase version of that string.
Write a function that takes a string input (which contains either spaces, underscores, or hyphens/dashes between words, but no combination of the two) and turn it into the camelCase version of that string.
Make a site that tracks how many times the user has clicked anywhere on the page (or a specific button if you prefer) and displays that click count to the user. Then, using localStorage or sessionStorage, make it so the number of clicks will remain on the screen even after
Given three ints, a b c, return true if one of b or c is "close" (differing from a by at most 1), while the other is "far", differing from both other values by 2 or more. Note: Math.abs(num) computes the absolute value of a number. closeFar(1,
Return the number of times that the string "hi" appears anywhere in the given string. countHi('abc hi ho') // 1 countHi('ABChi hi') // 2 countHi('hihi') // 2
Given an array of ints, return true if the array contains 1, 2, 3 somewhere (in that order). array123([1, 1, 2, 3, 1]); // true array123([1, 1, 2, 4, 1]); // false array123([1, 2, 2, 1, 5, 3]); // false