To get most out of this course, you will need to know how to build web pages using HTML and CSS. Beyond that, no prior programming experience with programming is necessary.
Step 2: Learning the language itself, and like all languages you need to know its vocabulary and how to structure your sentences.
In this tutorial, we will learn about Script. Script is a series of instructions that computer can follow to achieve a goal. Scripts are made up of instructions a computer can follow step-by-step. As you know, computers approach tasks in a different way than humans, so your instructions must let the computer solve the task programmatically.
To approach writing a script, break down your goal into a series of tasks and then work out each step needed to complete that task ( a flowchart can help too.)
HTML (CONTENT LAYER) : This is where the content of the page lives. The HTML gives the page structure and adds semantics.
CSS (PRESENTATION LAYER) : The CSS enhances the HTML page with rules that state how the HTML content is presented (backgrounds, borders, box dimensions, colors, fonts etc.)
In this tutorial,we will do an example which adds a greeting message into an HTML page. The greeting message changes depending on the time of the day.
Comments help make your code easier to read and understand.You must write comments to explain what your code does. This can help you and others who read your code.
Storing a value in a variable is called variable initialization. You can do variable initialization at the time of variable creation or at a later point in time when you need that variable.
In this tutorial, we will use a variable to store a number. In this tutorial, we will create three variables and values are assigned to these variables.
In this tutorial, we will see how to use Quotes inside a String. Sometimes you will want to use a double of single quote mark within a string.
Because strings can live in single or double quotes, if you just want to use double quotes in the string, you could surround the entire string in single quotes. If you just want to use single quotes in the string, you could
surround the string in double quotes.
You can also use a technique called escaping the quotation characters. This is done by using a backwards slash (or "backslash") before any type of quote mark that appears within a string.The backwards slash tells the interpreter that the following character is part of the string, rather than the end of it.
In this tutorial, we will learn about rules for naming variables.
In this tutorial, we will learn about Arrays. An array is a special type of variable. It doesn't just store one value,it stores a list of values.
You should consider using an array whenever you are working with a list or a set of values that are related to each other.
Arrays are especially helpful when you do not know how many items a list will contain because, when you create the array, you do not need to specify how many values it will hold.
colors =['white', 'black', ' custom '];
In this tutorial, we will learn about how to declare an array.
You create an array and give it a name just like you would any other variable (using the var keyword followed by the name of the array).
Note: The values are assigned to the array inside a pair of square brackets, and each value is separated by a comma. The values in the array do not need to be the same data type, so you can store a string, a number and a Boolean all in the same array.
var colors= ['white', 'black', 'custom'];
What is an operator?
Logical (or Relational) Operators
Conditional (or ternary) Operators
There is just one string operator: the+ symbol. It is used to join the strings on either side of it.
var firstName = 'Ivy ' ;
var lastName = ' Stone' ;
var fullName = firstName + lastName;
full Name would hold the string 'Ivy Stone'.
This example tutorial combines several techniques that you have seen throughout this section.
WHAT IS A FUNCTION?
Functions let you group a series of statements together to perform a specific task. If different parts of a script repeat the same task, you can reuse the function (rather than repeating the same set of statements).
I am a Java/J2EE and salesforce developer, have been writing and working with software for the past 5 years. I currently live in Dallas/TX.
If your goal is to become one of these:
Then checkout my courses. I have close to 10000 students in and out of udemy. My passion is helping people around the world and guide them into the world of programming.
I am Oracle certified JAVA ,J2EE developer. I love coffee, music, exercise,coding and technology. See you in my course:)