Posts

Showing posts with the label language

Javascript Data Types

Image
  Data Types In JavaScript(Js) Data types are used to classify one particular type of data in programming languages. For instance, a number and a string of characters are different types of data that will be treated differently by JavaScript. This is important because the specific data type you use will determine what values you can assign to it and what you can do to it. This is to say, to be able to do operations with variables in JavaScript, it is important to understand the data type of any given variable. JavaScript has different data types to hold different types of values.There are two types of data types in Js following below. Primitive data type Non-Primitive data type 1.Primitive Data type          String:represents sequence of characters e.g. "myname"         Number:represents numeric values e.g. 110         Boolean:represents boolean value either false or true        Undefined:repr...

JavaScript Introduction

Image
JavaScript Introduction JavaScript is a text-based programming language used both on the client-side and  server -side that allows you to make web pages interactive. Where HTML and  CSS  are languages that give structure and style to web pages, JavaScript gives web pages interactive elements that engage a user. JavaScript is the world's most popular programming language. JavaScript is the programming language of the Web. JavaScript is easy to learn. JavaScript can change the Html content One of many JavaScript HTML methods is getElementById(). The example below "finds" an HTML element (with id="demo"), and changes the element content (innerHTML) to "Hello JavaScript". JavaScript Key Points and Features: Client /side scripting language. JavaScript is not java. Used to provide instant feedback. Better usability. Richer web application. Works the DOM(i.e.HTML,XML,etc....). Light Weight Scripting language. Dynamic Typing. Object-oriented programming suppor...