Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

Morning Cup of JavaScript

Am introduction and overview of JavaScript.
by

Gloria Kimbwala

on 12 July 2016

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of Morning Cup of JavaScript

Morning Cup of JavaScript
Gloria Kimbwala

Introduction
JavaScript is a programming language used to make web pages interactive. It runs on your visitor's computer and doesn't require constant downloads from your website.

It is not the same as JAVA.
Loops
A loop is a way of repeating a statement a number of times until some way of ending the loop occurs.
Things to Remember
1. There’s no class in JavaScript.
2. Everything (except null and undefined) behaves like an object, even numbers and functions:
3. Variables are global by default.
4. this is defined by the caller, not the object itself
5. === must be used for strict comparison.
6. 0, Undefined , null, “”, and NaN 0 are falsy.
7. Variable declarations are hoisted on top of the current scope.
8. Parameters in functions can be omitted
9. It doesn’t matter if you use “” or ‘’ for Strings
10. JavaScript can be used outside browsers

Conclusion
everyone starts somewhere

Additional Resources
www.w3schools.com/js/‎
https://developer.mozilla.org/en-US/learn/javascript
http://javascriptissexy.com/how-to-learn-javascript-properly/
www.lynda.com
www.learningtree.com
www.codeacademy.com
www.skillcrush.com

Additional Resources
Meetup
MeetUp- JS San Diego- @jssandiego Tuesday at 7:30 PM
One America Plaza Building
600 W.Broadway Floor 92101
@sandiegojs
the Possiblities
Creatuve JS for Non-coders
Arithmetic Operators
Addition/Concatination (x+y;)
Subtraction
(x-y;)
Multiplication
(x*y;)
Division
(x/y;)
Modulus
(x%y)
Adds one to x
(x++, ++x)
Minus one from x
(x-- ,--x)
Coding Basics
Comments
Data Types
Expression
Operations
Comparissons

// comments out remarks
End statements must end in ;

Data Type
String
var ball = "Basketball";
Number
var x = 7;
Object
Boolean
var IsMale = false;
Function
Array
Null
var car = null;
Undefined
var books;
Leave a comment
Loops
If Statements
case:
Arrays:
Objects:
functions

var mycars = new Array();
var bob = {};
var greeting = function (name)
Comparission
Assignment (=)
Equal(==)
Identical (===)
Greater than (>)
Less than (<)
Equal to or greater(>=)
Equal to or Less Than(<=)
Not (!)
Not Equal (!==)
Not Identical (!===)
And(&&)
Or(//)
False (!X)

For Loops
for (var i = 0; i<5; i++){console.log(i)};
var x = 0;while (x < 5) {console.log(x);x++;}
While Loops
Arrays

var rainbow = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet'];


Bracket Notation
var firstColor = rainbow[0];var lastColor = rainbow[6]; rainbow[2] = “Brown”;

Objects
Objects allow us to represent in code real world things and entities (such as a person or bank account).


var kitten = {age: 1,name: "Fluffy",likes: ["yarn", "snuggles"],color: “grey”};


Literal Notation:

var likes = kitten.likes; kitten.name = “Furball”;


Dot Notation:

function aboutMyPets(pet) {console.log(pet.name + “ is my pet ” + pet.species);}


aboutMyPets(kitten);


Objects in Functions
Find a mentor
Have fun!
Play around and have fun
Functions
var kitten = {name: “Fluffy”, species: “cat”, getName: function() { console.log(this.name); }}
kitten.getName()

Javascript mets Bach
Javascript
Javascript is nothing like Java, instead its a scripting language based on C syntax but with the addition of Objects and is used mainly in browsers
Full transcript