Flashcards
Vefforritun True or False
Cards in this deck (16)
- 1canvas represents a raster imageTRUE
- 2in order to draw on the canvas using JavaScript, a reference to the canvas context must first be obtainedTRUE
- 3a canvas drawing (for instance, a rectangle and two lines) can be specified in the HTML markupFALSE
- 4text is drawn onto a canvas using the fillText() functionTRUE
- 5it is possible to draw images onto a canvas using the drawImage() functionTRUE
- 6There are two types of scope in JS: Global scope and Function scopeTRUE
- 7If two variables share a name and are both defined within a given function, only one variable is actually declaredTRUE
- 8A block (if/while/for etc.) will create a new scopeFALSE
- 9If a local variable is declared with the same name as a global variable, only the local variable will be visible within the functionTRUE
- 10An inner function declares a new scope, and variables defined in the inner function are not accessible to the outer functionTRUE
- 11Functions can be stored in arraysTRUE
- 12Functions can be assigned to variablesTRUE
- 13Functions can be nested, i.e. we can define a function within a functionTRUE
- 14Functions can store data, just like an objectTRUE
- 15Functions have access to all variables declared within them, including variables in inner functionsFALSE
- 16—
Information
- Description
- Flashcards on Vefforritun True or False, created by Kristin Sif Vigfusdottir on 03/04/2017.
- Created by
- Kristin Sif Vigfusdottir
- Views
- 0
- Rating