Jeff Schram
Projects A/V
Contact About

Monthly Archives: March 2018

March 27, 2018

JeffLearnsReact – Iterators

Iterators iterate myArray = [‘one’, ‘two’, ‘three’]; .forEach() myArray.forEach(function(myArrayItem) { console.log(myArrayItem); }); myArray.forEach((myArrayItem) => { console.log(myArrayItem); }); .map() Iterates and CHANGES the contents of an array, maps it to another array let numbers = [1, 2, 3, 4, 5]; let bigNumbers = numbers.map(function(number) { return number * 10; }); let numbers = [1, 2, 3, […]

March 26, 2018

JeffLearnsReact – Loops

for loops, which let us loop a block of code a known amount of times. let myArray = [‘one’, ‘two’, ‘three’, ‘four’]; for (let i = 0; i<myArray.length; i++) { console.log(myArray[i]); } let i = 0; is the start condition – loop will start at 0 i is the iterator variable i<myArray.length is the stop […]

JeffLearnsReact – Terminal

THE TERMINAL I know all this, must making notes the “$” is a “shell prompt” – never knew what that was called pwd is “Print working directory” mkdir makes a directory touch creates a file ……………………….. The command line is a text interface for the computer’s operating system. To access the command line, we use […]

JeffLearnsReact – Arrays

Array methods – functions that manipulate array contents. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array let myArray = [‘item one’, ‘item two’, ‘item three’] const myArray = [‘item one’, ‘item two’, ‘item three’] if you use const, you cannot change the data type but you CAN manipulate the array in any way. Each item has a numbered position JS starts counting […]

JeffLearnsReact – 9 – Iterators

Iterators iterate myArray = [‘one’, ‘two’, ‘three’]; .forEach() myArray.forEach(function(myArrayItem) { console.log(myArrayItem); }); myArray.forEach((myArrayItem) => { console.log(myArrayItem); }); .map() Iterates and CHANGES the contents of the array Powered by WPeMatico

Posts navigation

← Older posts

Recent Posts

  • JeffLearnsReact – Classes
  • JeffLearnsReact – Objects
  • JeffLearnsReact – Flow
  • JeffLearnsReact – Iterators
  • JeffLearnsReact – Loops

Recent Comments

    Archives

    • April 2018
    • March 2018
    • May 2015
    • April 2015
    • March 2015

    Categories

    • Ducky Moto
    • JeffSchram.com
    • Photography
    • The Moon
    • Uncategorized

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
    Proudly powered by WordPress