Please enable JavaScript.
Coggle requires JavaScript to display documents.
Fundamentals (Computational Thinking (7 Step Approach (Debug failed test…
Fundamentals
Computational Thinking
Everything is a number,
so everything needs to be represented numerically
Type: Interpretation of numbers, do they mean letters or just numbers: how to operate on them. 1+1=2 and "1"+"1"="2"
type specifies not only how the program should interpret the number, that is what the numeric value means.
Because JavaScript keeps the types of all values in memory, meaning that it tracks and works with the types while it runs the program, It's called a dynamically typed language.
-
-
-
7 Step Approach
- Solve small instance(example) by hand
-
- Find patterns, and conditions
- Check by hand: For different inputs
-
-
-
Variables
Var x = 3;
Create a box labelled [x],
and put 3 in it
var fgimage = new SimpleImage(drewRobert.png);
new, gives you an arrow to the new thing made
[fgimage]---->drewRobert.png
Multiple arrows can point to same thing from different boxes.
Methods
-
-
Functions
Not invoked on object, print(x)
Event Driven Programming
Html element are event emitters, that is, subjects able to emit events.
-
The subject is like an FM radio, it broadcasts a message to any observer interested in listening what the subject says
-
HTML
MarkUp not programming
a markup language is a system for annotating a document in a way that is syntactically distinguishable from the text.
-
-
-