2. What is JavaScript?
JavaScript is a scripting programming language that runs on web
browsers. It makes web pages functional for specific purposes and if
disabled for some reason, the content or the functionality of the web
page can be limited or unavailable. Programming is used to tell the
computer what to do.
3. Goals
The goal is to get you used to some of the concepts found in
JavaScript programming. These concepts are applicable to
many other programming languages like Java, NET, ASP
and several others.
4. Know the Concepts of JavaScript
Statements
a section of code that performs a single action.
Functions
tells the computer that this is the beginning of programming code that takes an
action.
Objects
can store two or more pieces of data at once
5. How to Write Scripts
Simple Scripts
days = now.getDays();
months = now.getMonths();
years= now.getYears();
6. How to write a code
This code will tell the computer to say: ‘Today is a nice day. ‘
function popupMessage()
{
alert(“Today is a nice day");
}
Codes has got to be written correctly to function (look below).
function popupMessage()
{
(“Today is a nice day");
}
This code will not function because I left out the word alert.
7. Assignments
Reading
textbook, articles, and web links
Quizzes
weekly ( multiple choice and true or false)
Create a simple JavaScript program
Group assignment
build webpage about your group