Javascript Flashcards
Explain the relationship between HTML, CSS, and Javascript
HTML defines the elements of the page, CSS styles those elements, and JS describes the behavior of those elements.
Note: wherever you go, you will need to know Javascript. It describes every interaction on most modern Web pages
Javascript is an ____ language
Interpreted. It is evaluated line by line at run time
There must be an ___ that can evaluate the code you write
Interpreter
Javascript runs your code in what manner?
2-step, parses and rearranges line by line, then actually runs it line by line. VERY IMPORTANT TO UNDERSTAND
Javascript uses an event-driven programming style
Listens for a an EVENT while doing other things and executes remembered instructions
What is software
Software is a sequence of instructions that we build and provide to a computer, when then ‘mindlessly’ runs those instructions.
Difference between interpreted and compiled languages?
Compiled languages do some or all of this translation ahead of time, while interpreted do on the fly, immediately before a computer needs it
Whats a good way to think of booleans?
In programming, like a traditional light switch or perhaps a yes/no question on a test
Difference between = and ==?
= sets things, and == tests things
What is ?
The canvas element is perfect for making games in HTML. Offers all the functionality you need for making games
What is getContext(‘2d’)
The canvas element has a built-in object, called the getContext(‘2d’) with methods and properties for drawing.