Skip to content

katiehoesley/basic-react-timer

Repository files navigation

Basic react timer

Other answers to prompts:

// var mul = function(a) { // return function(b) { // return function(c) { // return a * b * c; // }; // }; // } // console.log(mul(2)(4)(5)); //setting up the function like this gives the inner function access to all variables a, b, and c and within a you return the anonymous function that takes b as a parameter, within b you return the anonymous function that takes c as a parameter (this could go on for as many inputs as you wanted to multiply together)

// React Coding: Write a countdown clock react component that has a function prop that will format the time it displays. (see repo)

// Which of the following code snippet append an element value at the end of the array, arr? // b) arr[arr.length] = value //this would add something to the end of the array, the length of the array is one number higher than the highest index, so adding something at that index would be adding it to the end -- though I more commonly see things intentionally pushed to the end of an array

// JavaScript: what is the correct way to create a JavaScript array? // a) var items = ["Orange", "Apple"]; //this is the correct way

// // JavaScript: What is the output of the following code // foo = 1; // (function() { // foo = 2; // })(); // var x = function () { // foo = 3; // }; // (function() { // var foo = 4; // })(); // console.log(foo); // output is 2

About

Basic countdown timer build with React and Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published