Christine Al-Thifairy

Software Engineer

JavaScript Quiz

What is a closure?

A closure is an inner function that has access to the outer
function's variables

What is the difference between == and ===?

When a comparison is made using the double-equals operator, it will check
the values of both expressions and convert them to a common
type and return true if both are equal.
So comparing a number with a string having the same value will return true.

The triple-equals operator, also called strict equals or identically equal never does
type converting. Instead it will compare the value and the type.
So comparing a number with a string having the same value will return false.

Describe how promises are used in JavaScript

JavaScript is single threaded so it is largely synchronous
(blocking) but there are also asynchronous (non blocking)
operations such as AJAX calls and events.

Promises are objects that represent the value of a long
running operation and provide an API for handling
that value when it arrives.

A promise can be:

Fulfilled - The action relating to the promise succeeded.

Rejected - The action relating to the promise failed.

Pending - Hasn't fulfilled or rejected yet.

Settled - Has fulfilled or rejected.

This blog article
explains the meaning of a promise in AngularJS in a very simple way.

AngularJS Examples

Movie Publisher

Synchronous AJAX calls exerciseusing AngularJS and Bootstrap

TODO List

TODO List exerciseusing AngularJS and Bootstrap

Tag List

Tag List exercise
using AngularJS and Bootstrap

Multi Choice Quiz

A multi choice quiz exercise
using AngularJS and Bootstrap

Sign Up Process

A simple multi-step sign up process
using AngularJS and Bootstrap

Audio Player

A mock audio player
Using AngularJS and Bootstrap

Filtered Grid

A simple grid selectively filtered
using AngularJS and Bootstrap

AngularJS Form Validation

Simple Form Validation
using AngularJS and Bootstrap

Cumulative Progress Bars

A simple cumulative progress bar exercise
using AngularJS and Bootstrap

AngularJS Custom Directive

A simple horizontal charts directive

Backbone.js Examples

TODO List

TODO List exercise
usin Backbone.js and Bootstrap

Tag List

A simple Tag List application
using Backbone.js and Bootstrap

Multi Choice Quiz

A multi choice quiz
using Backbone.js and Bootstrap

Sign Up Process

A simple multi-step sign up process
Backbone.js and Bootstrap

Cumulative Progress Bars

A simple cumulative progress bar exercise
using Backbone.js and Bootstrap