We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Corrected some typos.
Clarify that string[index] = newchar doesn't work
Add Destructuring Assignments to the Assigment section.
Add charAt() and direct str[index], alongside str.substr() and str.substring()
Add info on testing for empty arrays.
Added some info about easy JS string comparison, ie. if (str1 === "sometext") // do something
Clarify the Switch and Case description, esp. that case uses exact === comparison, so case 1 and case "1" are different.
Updated JavaScript basics (markdown)
Add "JavaScript Versions" to the TOC
Completed an update of the whole tut, done through Jan/Feb 2019. Improvements always welcome.
More minor updates. Done down to "Rest Arguments"
More tiny edits, and var -> let changes.
More small cleanups, and change var to let.
More small updates: mostly var -> let
Considerable number of very minor updates, just improving clarity. Also including update to ES6: only change var to let in this tranche.
Add a reference to the site caniuse.com in the section on JavaScript versions.
Make a note in To Do section that this tutorial could maybe be split into two.
Added a To Do item at the end to mention the Data utility functions suite in p5.js - append(), float(), join() etc.
Add "let n" to the for of/each/in examples. Good to keep scope of loop variables restricted.
More words in the final To Do section about the ES5 - ES6 changes in p5.js documentation.
Add a warning about multiple assignment of arrays, eg. arr1 = arr2 = [1,2,3]
Corrected Math.power() to Math.pow() in notes on ** operator
Add an item to the final To Do to reflect the work starting in p5.js to update code examples to ES6.
Added the string "replace" method to the list of useful string functions: str2 = str1.replace(/a/, "b");
Renamed "data[2]" array reference to "stuff[2]", as the array referred to was named "stuff".
Add the repeat() method on strings to generate a string of repeated characters
Add some thoughts to the To Do at the end.
Add parseFloat(). Note that p5.js brings Math.sqrt() back out to sqrt() etc.