Because many users used javascript with a web browser or to make web development I will make a few tutorials about JavaScript.
I will try to cover the most important details and features that JavaScript has to offer.
First, the JavaScript language has no concept of input or output because is designed to run as a scripting language in a host environment.
The JavaScript is an object-oriented dynamic language with types and operators, standard built-in objects, and methods.
The syntax is based on the Java and C languages.
JavaScript’s types are:

  • Number
  • String
  • Boolean
  • Function
  • Object
  • Symbol

Because Symbol type is new in Edition 6 then you need to know this: A symbol is a unique and immutable data type and may be used as an identifier for object properties. See this example with one symbol type definition.

One good website to learn the basics of JavaScript its www.w3schools.com.
Let’s try to get screen resolution with javascript.
First, you need to make your HTML file and to add this source code under <script></script>  HTML tags:

This variable will be used with this source code:

Detecting the screen resolution comes when we used variables and then we used that to make redirecting on another page.
How to create an object constructor
This is the source code :

The output will be one window with this text: My_first_name ;

You can test it online with jsbin.com website.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.