Coder Social home page Coder Social logo

basic-react-timer's Introduction

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

basic-react-timer's People

Contributors

katiehoesley avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.