Code Monkey home page Code Monkey logo

web-development's Introduction

Web-Development

Basic and advanced module based js.

What js can do ?

  • Build dynamic web pages.
  • Display alert boxes.
  • Write messages to the browser status bar.
  • Control features of the browser.
  • Open new browser windows.
  • Customize reactions to mouse actions and keystrokes.
  • Validate information in forms.
  • Perform calculations.
  • Display tooltips when rolling over objects on the screen.
  • Create interactive forms.
  • Set date and time.
  • Identify browsers and browser plug-ins such as Flash.

What js cannot do ?

  • Write files to the hard disk.
  • Read files from the hard disk -- except for cookies.
  • Close windows other than those the JavaScript applications opened.
  • Write server-side applications, called Common Gateway interface (CGI) applications, which must be written using languages such as Java, PHP, Perl and ASP.
  • Read information from a web page that resides on a domain different from the domian where the javascript code resides.

We will be using these resources to tackle down javascript :

JavaScript O'Really JavaScript demystified JavaScript Mozilla docs

Getting down to JavaScript :

JavaScript Program Anatomy :

  • Objects : are the instantiation of classes and encloses some member functions and member variables (properties or attributes).
  • Properties : are the object's member variables.
  • Methods : are the object's member functions, a fucntion differs from a method that it can have a return and can be assigned to another value, member methods can be accessed from the object using the dot syntax foobar.startRenderer();.
  • Event Handlers : are overridable interfaces with some methods that are used for invoking some actions when something remotely takes place (like listening for sensor's data or button clicks or an analog device).

Spice up :

Copy this code into index.html and run into a browser :

<!DOCTYPE html>
<!-- This is an HTML5 file -->
<html>
<!-- The root element -->
<head>
    <!-- Title, scripts & styles can go here -->
    <title>Spicing Up</title>
</head>
<body>
    <!-- The body holds the content of the document. -->
    <h1>Spice Up !</h1>
    <script language="js" type="text/JavaScript">
      const hello = "Hello World !";
      document.write(hello);
      alert(hello);
  </script>
</body>
</html>

web-development's People

Contributors

scrappers-glitch avatar

Stargazers

 avatar  avatar

Forkers

edemekong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.