COMP3006 – Full Stack Development
Companion Booklet
University of Plymouth
, Table of Contents
Important Tools to Know ........................................................... 3
jQuery ....................................................................................... 4
Setting up jQuery................................................................... 4
Basic Syntax ............................................................................. 5
Selecting Elements – JS vs jQuery........................................ 5
Functions............................................................................... 5
Events and Promises ................................................................ 8
Events ................................................................................... 8
Promises ............................................................................... 8
Variable Scope........................................................................ 10
Scoping ............................................................................... 10
Variable hoisting .................................................................. 10
Debugging .............................................................................. 12
Breakpoints ......................................................................... 12
Pause on Exceptions........................................................... 12
Console logging and stack traces ........................................ 13
Code analysis ...................................................................... 13
About this booklet
This is a companion resource to the COMP3006 series,
introducing you to the basics of JavaScript.
This booklet should be used alongside your lectures and
workshops for quick reference and a deeper dive into the
information available on the slices. It is not written to fully
replace your lectures or workshops.
Page