Skip to content

History / JavaScript basics

Revisions

  • Corrected some typos.

    @grege2 grege2 committed Jan 11, 2022
  • Clarify that string[index] = newchar doesn't work

    @grege2 grege2 committed Jul 9, 2021
  • Add Destructuring Assignments to the Assigment section.

    @grege2 grege2 committed Jul 9, 2021
  • Add charAt() and direct str[index], alongside str.substr() and str.substring()

    @grege2 grege2 committed Jul 9, 2021
  • Add info on testing for empty arrays.

    @grege2 grege2 committed Dec 18, 2020
  • Added some info about easy JS string comparison, ie. if (str1 === "sometext") // do something

    @grege2 grege2 committed Oct 19, 2020
  • Clarify the Switch and Case description, esp. that case uses exact === comparison, so case 1 and case "1" are different.

    @grege2 grege2 committed Oct 14, 2020
  • Updated JavaScript basics (markdown)

    @lmccart lmccart committed Jun 17, 2019
  • Add "JavaScript Versions" to the TOC

    @grege2 grege2 committed Feb 26, 2019
  • Completed an update of the whole tut, done through Jan/Feb 2019. Improvements always welcome.

    @grege2 grege2 committed Feb 12, 2019
  • More minor updates. Done down to "Rest Arguments"

    @grege2 grege2 committed Feb 12, 2019
  • More tiny edits, and var -> let changes.

    @grege2 grege2 committed Jan 28, 2019
  • More small cleanups, and change var to let.

    @grege2 grege2 committed Jan 28, 2019
  • More small updates: mostly var -> let

    @grege2 grege2 committed Jan 28, 2019
  • Considerable number of very minor updates, just improving clarity. Also including update to ES6: only change var to let in this tranche.

    @grege2 grege2 committed Jan 28, 2019
  • Add a reference to the site caniuse.com in the section on JavaScript versions.

    @grege2 grege2 committed Jan 10, 2019
  • Make a note in To Do section that this tutorial could maybe be split into two.

    @grege2 grege2 committed Dec 29, 2018
  • Added a To Do item at the end to mention the Data utility functions suite in p5.js - append(), float(), join() etc.

    @grege2 grege2 committed Dec 27, 2018
  • Add "let n" to the for of/each/in examples. Good to keep scope of loop variables restricted.

    @grege2 grege2 committed Dec 23, 2018
  • More words in the final To Do section about the ES5 - ES6 changes in p5.js documentation.

    @grege2 grege2 committed Dec 17, 2018
  • Updated JavaScript basics (markdown)

    @grege2 grege2 committed Dec 17, 2018
  • Add a warning about multiple assignment of arrays, eg. arr1 = arr2 = [1,2,3]

    @grege2 grege2 committed Dec 14, 2018
  • Corrected Math.power() to Math.pow() in notes on ** operator

    @grege2 grege2 committed Dec 12, 2018
  • Add an item to the final To Do to reflect the work starting in p5.js to update code examples to ES6.

    @grege2 grege2 committed Dec 11, 2018
  • Added the string "replace" method to the list of useful string functions: str2 = str1.replace(/a/, "b");

    @grege2 grege2 committed Dec 11, 2018
  • Renamed "data[2]" array reference to "stuff[2]", as the array referred to was named "stuff".

    @johannesklev johannesklev committed Jun 8, 2018
  • Add the repeat() method on strings to generate a string of repeated characters

    @grege2 grege2 committed Apr 4, 2018
  • Add some thoughts to the To Do at the end.

    @grege2 grege2 committed Mar 28, 2018
  • Updated JavaScript basics (markdown)

    @grege2 grege2 committed Mar 26, 2018
  • Add parseFloat(). Note that p5.js brings Math.sqrt() back out to sqrt() etc.

    @grege2 grege2 committed Mar 26, 2018