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

A bot for uploading purpose, A bot for uploading purpose Project Descrip...

A bot for uploading purpose Project Description: i'm seeking a good coder to code me a bot for uploading purpose must work on windows Skills required are C Programming, PH

A script to spider and index a site needed, A Script to Spider and Index a ...

A Script to Spider and Index a Site, A Script to Search the Index I want a script that can take 1 or more URLs and spider and index a site. The script must essentially use an ex

Smtp and electronic mail, One of the very useful things regarding Internet ...

One of the very useful things regarding Internet is that it let you almost immediately exchange of electronic message (e-mail) across the entire worlds. On the electronic frontier

Need help to make small mods to civicrm or joomla, Need help to make small ...

Need help to make small mods to CiviCRM / Joomla Need developer previously familiar with Joomla 3.2 and CiviCRM 4.4 to write some mods to CiviCRM to extend some forms. Job De

I am seeking some software to be written to permit, Venue Bookings Manager ...

Venue Bookings Manager EoI I am seeking some software to be written to permit me to take, and manage bookings for an athletics track. This will be related in to an existing webs

We need help in mobile punch card builder, We need help in Mobile Punch Car...

We need help in Mobile Punch Card Builder I have a mobile site builder platform which I would like users to as well be able to create mobile punch cards (punches) & Rewards poin

Need help in linkedin javascript api on wordpress site, LinkedIn JavaScript...

LinkedIn JavaScript API on WordPress site I would like assistance implementing LinkedIn JavaScript API so users of my WordPress site can "Sign In With LinkedIn". The goal is

Overview of dreamweaver, Let us begin with a brief overview of Dreamweaver ...

Let us begin with a brief overview of Dreamweaver work area. If you haven't launched Dreamweaver already, double-click on the Dreamweaver icon on your desktop to do so. While yo

Difference between b2c and b2b business strategies, Question: (a) A co...

Question: (a) A company would like to extend its business over the internet. List the needed steps for that to happen. (b) Describe, with the aid of examples, the differenc

U.s. wordpress developer (mobile-responsive) expert, U.S. WordPress Develop...

U.S. WordPress Developer (Mobile-Responsive) expert Seeking a US WordPress expert (US Only) that can work on projects for our current clients - ad hoc fixes, enhancements and em

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