Created by Baruš Jeřábková
Notes from the Grasshopper app Notes from Hello Ruby book for kids Looking for answers Embracing "shit happens" reality Just trying to get it....
list of items
The item can be different data types: numbers, strings, oter arrays
An array inside another array is called an array nesting
They allow you to reference the same piece of information multiple times.
In JS can be defined using var then giving the variable a unique name
tells a computer to do a certain thing
functions can take arguments to give the computer extra information
example:
in Grasshopper - drawBox ()
in Grasshopper drawBox(red) - red is an argument, tells the computer to draw a red box
Letters, words, and sentences are called strings in coding.
Quotation marks are used to show the start and the end of a string.
for example 'hello world' is a string
console.log('I will be able to code for real!')
If statements allow you t orun a specific section of code when a test is true.
The code inside ( ) is the test
If the test is true then the code inside the block { } runs. If the test isn't true, the code in the block doesn't run.