Data types, PHP Web Programming

Assignment Help:

A value, the data assigned to a variable, may contain any sort of data. Though, JavaScript considers data to fall into many possible types. Based on the type of data, certain operations may or may not be allowed on the values. For instance, you cannot multiply arithmetically two string values. Variables can be of following types:

Data Types

Description

 

 

 

 

 

 

 

Number

3 or 7.987 are the examples of Integer & floating-point numbers.

 

Integers can be positive, 0, or negative; Integers can be expressed in decimal (base 10), hexadecimal (base 16), and octal (base 8). A decimal integer literal contains a sequence of digits without a leading 0 (zero). A leading 0 (zero) onto an integer literal denote it is in octal; a leading 0x (or 0X) specified hexadecimal. Hexadecimal integers can include digits (0-9) and the letters a-f & A-F. Octal integers can include only the digits 0-7.

 

A floating-point number can contain either a decimal fraction, an "e" (uppercase or lowercase), that is used to represent "ten to the power of" in scientific notation, or both. The exponent part is an "e" or "E" followed by an integer, which can be signed (preceded by "+" or "-"). A floating-point literal ought to have at least one digit & either a decimal point or "e" (or "E").

Boolean

True or False. The possible Boolean values are true & false. These are special values, & not usable as 1 & 0. In a comparison, any expression which evaluates to zero is taken to be false, & any statement which evaluates to a number other than 0 is taken to be true.

String

"Hello World!" Strings are delineated through single or double quotation marks. (Employ single quotes to type strings that have quotation marks.)

Object

MyObj = new Object();

Null

Not the simialr as zero - no value at all. A null value is one which has no value and means nothing.

Undefined

A value which is undefined is a value held through a variable after it has been created, however before a value has been assigned to it.

 


Related Discussions:- Data types

Add javascript into a web page, As you know HTML (Hypertext Markup Language...

As you know HTML (Hypertext Markup Language) is the language you employ to generate Web documents. You should have created "Hello World!" as given below:

We are in need web app developer for api and scraping site, We are in need ...

We are in need Web app developer for api and scraping website For a website project I am in search of a part time developer Project The creation of a website as well as im

Need for building ecommerce website from scratch, Need for Building eCommer...

Need for Building eCommerce Website from Scratch We are seeking at starting a brand new online company and need an amazing website to match. Therefore far we have worked with

Tables, In this you will learn how to put tables in your web documents. It ...

In this you will learn how to put tables in your web documents. It is not that a table is just a combination of rows & columns. If you have ever seen any table in web page you may

Social website, how to creat a register and login form

how to creat a register and login form

Easy flash to html5 game bug fix, Easy Flash to HTML5 GAME Bug Fix, I will ...

Easy Flash to HTML5 GAME Bug Fix, I will provide the source. Fix some bug Desired Skills are MySQL Administration, HTML, PHP

Forms, Each of form in a document develops a form object. As a document can...

Each of form in a document develops a form object. As a document can have more than one form, Form objects are stored in an array called forms. Forms Array By using the for

We need help to develop online tax accounting software, We need help to dev...

We need help to develop Online Tax Accounting Software I am seeking a programmer and web designer who has experience to create a website where customers can log on to the websit

Need a expert for programming a bandcamp for writers, Need a expert for Pro...

Need a expert for Programming A Bandcamp(.com) for Writers and Zine Lovers I want someone who knows how to program a website like Bandcamp where users can have there own place t

Need help to make user registration a two-step process, Need help to Make u...

Need help to Make user registration a two-step process I have an partial Wordpress website that needs to be completed. There are about 15-20 things that want to be done however

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd