Exam 98-382: Introduction to Programming Using JavaScript/Program with Variables, Data Types, and Functions
This lesson covers primitive data types, arrays, objects, Math functions, and user-defined functions.[1]
Readings
[edit | edit source]Activities
[edit | edit source]Declare and use variables of primitive data types
[edit | edit source]Number; Boolean; String; Null; Undefined; typeof operator; type checking functions; use strict; converting between data types; formatting numbers; string operations; single quote vs double quote (nesting); initialization
Declare and use arrays
[edit | edit source]Single-dimensional arrays; multi-dimensional arrays; iteration; initialization; define an array; sort and search an array; use push, pop, shift, and unshift methods; use the length property; access an array element;
Complete and debug code that uses objects
[edit | edit source]Properties; methods; instantiation; Date object; retrieve date and time parts; localize date format (MM/DD vs DD/MM); add and subtract dates
Complete and debug code that uses built-in Math functions
[edit | edit source]Random; round; abs; floor; ceiling; min; max; pow; sqrt
Complete and debug a function that accepts parameters and returns a value
[edit | edit source]Reusable code; local versus global scope, redefine variables, pass parameters, value versus reference, return values