Skip to main content
    




Some points about JavaScript which is useful from those points about JavaScript you can easily get an idea about that.



JavaScript

  • JavaScript is an object oriented programming language.

  • There is no multiple processor in JavaScript.

  • It is a single threaded language.

  • JavaScript is to program the behavior of web pages 

  • JavaScript programs run using a single thread.

  • JavaScript does not wait for I/O operations.

  • JavaScript and Java is completely different

  • It is synchronous

  • JavaScript can have static methods and variables.

  • It supports object oriented programming. 

  • JavaScript accepts both double and single quotes



JavaScript classes, objects and prototypes


JavaScript introduced a feature to create classes that prevents accessing the wrong context when using the object properties and methods, which is normally the global scope or the window object.


All JavaScript objects are created from the Object constructor. JavaScript object instances can be created using the new keyword or with a function constructor. When ‘new’ keyword is used, new object is created and it assigned as ‘this’ for the duration of call to the constructor function.


JavaScript functions has a reference to another object called Prototype which can be used when creating objects, for inheritance and adding methods to a JavaScript class. The Prototype allows to add new methods to objects constructor



Callbacks and Promises 

Callback is a function that is being passed to an async task and on completion the function will be executed.

Promise is an object that is being returned from async tasks. Promise have properties to deal with async operations synchronously



JavaScript has different frameworks such as,



Angular

React

Vue.js

Ember.js

Meteor





















Comments

Popular posts from this blog

Restful Web Service Restful Web Service  is a lightweight, maintainable, and scalable service that is built on the REST architecture. Restful Web Service, expose API from your application in a secure, uniform, stateless manner to the calling client. Restful mostly came into popularity due to the following reasons: Heterogeneous languages and environments – This is one of the fundamental reasons which is the same as we have seen for  SOAP  as well. It enables web applications that are built on various programming languages to communicate with each other With the help of Restful services, these web applications can reside on different environments, some could be on Windows, and others could be on Linux. Restful Architecture An application or architecture considered REST full or REST-style has the following characteristics State and functionality are divided into distributed resources – This means that every resource should be accessible via the normal HTT
GitHub link  https://github.com/chamoddissanayake/OnlineFashionStore Group Project - Online Fashion Store There is a use case diagram of the system . This diagram denotes a better understanding about the system online fashion store. It provides who are the users of the system and what are the functionalities of the each user. System Functionalities Main Roles in the system. User Admin Store Manager Guest Only users who logged in to the system can place orders   Once the admin creates a login for the store manager, it should be notified to the store manager via email Admin can create categories for the products The store manager can add products with details to the relevant category and add discounts to selected products User can add products to the shopping cart   Users can purchase the selected products in the shopping cart by selecting the payment method Users can create a wish list from their preferred
React                -Is a java script library for build user interfaces.               -Used to create single page applications.               -Allows us to create reusable UI components.               -Every component in react goes through a life cycle of  events.               -Developed and maintained by Facebook and  Instagram.               -Acts as view in MVC architecture.               -Classes are considered as components.               -Simplicity and aim to performance are main benefits.                                              Main features in React (01)One way data flow Data flows parent component to child component only. But action flows from child component to parent component only. (02)Virtual DOM React maintain a virtual DOM. Continuously monitoring users actions. Only the changed element re enter. (03)JSX JavaScript XML. HTML like syntax. Prevents cross site attacks. -----------------------------------------