-
Notifications
You must be signed in to change notification settings - Fork 0
JavaScript Fundamentals
Adam Ponting edited this page Jan 7, 2021
·
7 revisions
- no need to use
type="text/javascript" -
/pathnameis absolute -
pathnameis relative
- semicolon
;at the end of each statement
- "use strict" to enable newer features and allow old code to work still
- "use strict" is best at the top of a .js page
- not needed when using classes and modules
- Cannot declare
letorconstwithout assigning a value at the same time - uppercase
constfor hard-coded, already known values, eg months, colours