JSFiddle

Brenda's public fiddles

  • bh0248ye

    Lo-Dash 2.2.1, HTML, CSS, JavaScript

  • Lfk2njwr

    No-Library (pure JS), HTML, CSS, TypeScript

  • object to array

    Lo-Dash 2.2.1, HTML, CSS, TypeScript

  • Highcharts Demo

    author(s): Brenda Cortez

  • Highcharts Demo

    author(s): Brenda Cortez

  • Highcharts Demo

    author(s): Torstein Hønsi

  • Highcharts Demo

    author(s): Torstein Hønsi

  • hydyeejz

    Underscore 1.4.4, HTML, CSS, JavaScript

  • Array Addition

    Have the function ArrayAdditionI(arr) take the array of numbers stored in arr and return the string true if any combination of numbers in the array can be added up to equal the largest number in the array, otherwise return the string false. For example: if arr contains [4, 6, 23, 10, 1, 3] the output should return true because 4 + 6 + 10 + 3 = 23. The array will not be empty, will not contain all the same elements, and may contain negative numbers.

  • Array Addition

    Have the function ArrayAdditionI(arr) take the array of numbers stored in arr and return the string true if any combination of numbers in the array can be added up to equal the largest number in the array, otherwise return the string false. For example: if arr contains [4, 6, 23, 10, 1, 3] the output should return true because 4 + 6 + 10 + 3 = 23. The array will not be empty, will not contain all the same elements, and may contain negative numbers.

  • Array Addition

    Have the function ArrayAdditionI(arr) take the array of numbers stored in arr and return the string true if any combination of numbers in the array can be added up to equal the largest number in the array, otherwise return the string false. For example: if arr contains [4, 6, 23, 10, 1, 3] the output should return true because 4 + 6 + 10 + 3 = 23. The array will not be empty, will not contain all the same elements, and may contain negative numbers.

  • MyGrid function

    Write a program that creates a string that represents an 6×6 grid. At each position of the grid there is either a "$" or a “&” character. The characters should form the pattern listed in the example output.

  • Palindrome FS

    Palindrome function for FS class.

  • Encode and Decode Message

    Using built in message, these function encode or decode message.

  • sWaP cAsE

    sWaP cAsE Create the function switchCase(string) take the str parameter and switch the case (lowercase or uppercase) of each character. EXAMPLE INPUT: "i LOVE PiZzA" OUTPUT: "I love pIzZa"

  • Basic Card Game

    Basic Card Game Steve and Josh are bored and want to play something. They don't want to think too much, so they come up with a really simple game. Write a function called winner and figure out who is going to win. They are dealt the same number of cards. They both flip the card on the top of their deck. Whoever has a card with higher value wins the round and gets one point (if the cards are of the same value, neither of them gets a point). After this, the two cards are discarded and they flip another card from the top of their deck. They do this until they have no cards left. deckSteve and deckJosh are arrays representing their decks. They are filled with "cards", represented by a single character. The card rank is as follows (from lowest to highest):'2','3','4','5','6','7','8','9','T','J','Q','K','A' Every card may appear in the deck more than once. Figure out who is going to win and return who wins and with what score: "Steve wins x to y" if Steve wins, where x is Steve's score, y is Josh's score "Josh wins x to y" if Josh wins, where x is Josh's score, y is Steve's score "Tie" if the score is tied at the end of the game. EXAMPLES: Steve is dealt ['A','7','8'] Josh is dealt ['K','5','9'] In first round, ace beats king and Steve gets one point. In second round, 7 beats 5 and Steve gets his second point. In third round, 9 beats 8 and Josh gets one point. You should return "Steve wins 2 to 1". INPUT: winner(['A','7','8'],['K','5','9']) OUTPUT: "Steve wins 2 to 1"

  • abCheck function

    Create the function "aBCheck(string)" that accepts a string parameter. Return the STRING value "true" if the characters a and b are separated by 3 places anywhere in the string at least one time. Otherwise return the STRING value "false" EXAMPLES: INPUT: aBCheck("pane borrowed"); OUTPUT: "true" INPUT: aBCheck("chainsbreak") OUTPUT: "true"

  • VowelCount2

    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.

  • all_sum

    function to add multidimensional arrays

  • all match function

    No-Library (pure JS), HTML, CSS, JavaScript