Brenda's public fiddles
-
Clock angles
function to return the angle formed by the hands of a clock at a given time
-
sum overlap of arrays
No-Library (pure JS), HTML, CSS, JavaScript
-
overlap 1
No-Library (pure JS), HTML, CSS, JavaScript
-
liftoff function
Write function to print from start_num to 1, where start_num is a positive number, and Liftoff! at the end
-
string to binary 2
Create a method to accept one arbitrary string as an argument, and return a string of length 26 with each character being a number equaling the count of a letter in the alphabet.
-
string to binary
Create a method to accept one arbitrary string as an argument, and return a string of length 26 with each character being a number equaling the count of a letter in the alphabet.
-
First Factorial
Using js, have the function firstFactorial(num) take the num parameter being passed and return the factorial of it.
-
Vowel Count
Using js, have the function vowelCount(str) take the str parameter being passed and return the number of vowels the string contains (i.e. "All cows eat grass" would return 5). Do not count y as a vowel for this challenge.
-
Times Table
Create a function 'timesTable' that takes a number and uses console.log(instead of return) to display all the values of the number from 0 up and including the number and all its multiples, this should in a string.
-
reverseString
Create the function 'reverseString' that reverses a string and returns the value of the reversed string. Do not use the .reverse() method
-
for loop with strings
using string as counter
-
Javascript filter - 1
While developing a website, you detect that some of the members have troubles logging in. Searching through the code you find that all logins ending with a "_" make problems. So you want to write a function that takes an array of pairs of login-names and e-mails, and outputs an array of all login-name, e-mails-pairs from the login-names that end with "_". If you have the input-array: [ [ "foo", "[email protected]" ], [ "bar_", "[email protected]" ] ] it should output [ [ "bar_", "[email protected]" ] ]
-
maxOfThree2
Create the function 'maxOfThree' that evaluates three numbers and returns the largest number of the three.
-
lastDigit2
Create the function 'lastDigit' that accepts two non-negative integers values and return true if they have the same last digit, such as 27 and 57.
-
largest array values
Write a program that outputs the top n elements from a list.
-
maxOfThree
Create the function 'maxOfThree' that evaluates three numbers and returns the largest number of the three.
-
lastDigit
Create the function 'lastDigit' that accepts two non-negative integers values and return true if they have the same last digit, such as 27 and 57.
-
front3
Create the function 'font3' that accepts a string. The first three letters of the string are added to the front of the string and at the end of the string. If the string length is less than 3, use whatever chars are present.
-
min function
Write a function min that takes two arguments and returns their minimum. console.log(min(0, 10)); // → 0 console.log(min(0, -10)); // → -10
-
Chess Board
Write a program that create a string that represent an 8x8 grid, using newline characters to separate the lines. At each position of the grid there is either a space or a "#" character. The characters should form a chess board. The program size, in this cases 8x8, should be variable, such that passing a different number will create a chess board of that size, e.g, 6, would create a table 6x6