View On GitHub
reading-notes
Reading Notes for Codefellows!
Project maintained by
AlanYHung
Hosted on GitHub Pages — Theme by
mattgraham
Code 102
Reading 07
Introduction
Uses of JavaScript
Access Content
Modify Content
Program Rules
React to Events
Scripting
Summary
A Script is a series of instructions for the computer to follow to achieve a goal.
Each time a script runs it might only use a subset of the script
Computers approach tasks differently than humans, so instructions must be concise and step by step
Flowcharts can help with Designing a Script
Writing a Script
Define the Goal
Design the Script
Code each Step
Basic JavaScript Instructions
Expressions evaluates into a single result.
Assigns a Value into a Variable
Uses 2 or more values to create a single value result
Operators are used in expressions to allow programmers to use multiple values and create a single result
Assignment Operators
Arithmetic Operators
String Operators
Comparison Operators
Logical Operators
Functions
Functions allow you to group a series of statements to complete a task.
<– Back