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

Web developer and possibly web designer needed, Web Developer and possibly ...

Web Developer and possibly web designer needed for a home swapping platform We are building web platform allowing students to swap their accommodation for a short-term period.

Unordered lists, First one, we will create an unordered list. These lists a...

First one, we will create an unordered list. These lists are also called as bulleted lists. These lists are characterized through list items that do not have numbers. They are used

Colgroup, describes a group of columns in the table and let you to set the ...

describes a group of columns in the table and let you to set the properties of those columns. goes after the tag immediately and bef

I want help in design corporate website, Design Corporate Website Websho...

Design Corporate Website Webshop selling urban as well as hip-hop inspired t-shirts designs. We have a quick drawings style symbol at the moment as well as would like have that

I need help to build state information portal, I need help to build State I...

I need help to build State Information Portal I am looking for a complete state information portal which has information about state education, healthcare, tourism, government o

We need a web developer for equity company, We need a Web Developer for Equ...

We need a Web Developer for Equity Company Gameplan is in search of a developer to join our NYC/NJ-based development team. You will be part of a slight startup development team

Need help in html5 web development, Need help in HTML5 Web development I...

Need help in HTML5 Web development I will want a web developer to 1) Create an interactive html5 page like the drag as well as throw feature in this website. The images ar

We are seeking a proficient coder with designer, We are seeking a proficien...

We are seeking a proficient coder with designer Our company is in its premature state as well as we are looking for someone who is proficient in both coding and web page design.

Develop an ecommerce website in the optical industry, Develop an ecommerce ...

Develop an ecommerce website in the optical industry that will allow customers to shop for frames upload/order prescriptions and have a shopping cart and pay. Need to look similar

I want someone to write codes, Programming I want someone to write codes...

Programming I want someone to write codes for an idea I have. To be honest I do not really trust the security of this site to disclose my idea without having seen any satisfacto

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