console.log("I Love JS")

What is javascript ?

It is scripting / programming language for HTML and web

What is javascript purpose?

  • DOM Manipulation
  • CSS Manipulation
  • User Interaction
  • Client side action
  • well, of course to script our web
while(true){
  alert("Bad Javascript ! Bad Javascript !");
}

Javascript Type

  1. Internal
  2. External
  3. Inline

DOM Manipulation

document.getElementById("h1-title").innerHTML = "Hello Me !";
document.write("<p>My First Paragraph</p>");

Display data

  • Using DOM Manipulation
  • Using alert
  • Using log
console.log("I love javascript");

Semicolon is your bestfriend, not your enemy !

;

Syntax

  • Variable & Data type
  • Mathematical operator
  • Comments
  • Block (Function)

To Do

Please create a simple calculator. It should contains :

  1. Addition
  2. Substraction
  3. Multiplication
  4. Division

console.log("I Love JS")

By Mukhammad Yunan Helmy

console.log("I Love JS")

  • 627