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

I want html/css/js of a new website from design files, I want HTML/CSS/JS o...

I want HTML/CSS/JS of a new website from design files I have several artwork that I created to my company's new website however we are really busy here right now as well as we w

I want a script to extract web data, Script to extract web data I want a...

Script to extract web data I want a script with two functionalities: - Excerpt specific text data from web sites - Find particulars of these data using Google Location ser

Colspan and rowspan, Now let us see how to deal with ROWSPAN (Row Span) and...

Now let us see how to deal with ROWSPAN (Row Span) and COLSPAN (Column Span). If we desire the cell containing Ajay in Figure to be extended to the next cell as well and make th

Set cell properties, Cell height finds out the height of the space in a cel...

Cell height finds out the height of the space in a cell row. Notice the space about the Compass logo. You desire to remove the extra space amongst the logo and navigation buttons.

Need help flash and audio streaming with recording, Flash and Audio Streami...

Flash and Audio Streaming with Recording I need to add audio streaming as well as recording feature to my chat application. This is additional feature. Chat application has b

I need help to create a unique website, I need help to create a unique webs...

I need help to create a unique website I'm seeking a programmer with experience in PHP, Javascript as well as Jquery, MySql. I have most of the script ready as well as need a li

Need help for a proposal for electronic medical record, Proposal for electr...

Proposal for electronic medical record I'm development an online electronic medical record custody application for a third country as well as need a proposal for funding. I want

Want a facebook app designed for a social media, Facebook App Developer ...

Facebook App Developer I want a Facebook app designed for a social media contest where users can upload a picture and comment share it with friends and other users can like it a

Need to create container tracking search engine, Need to create Container T...

Need to create Container Tracking Search Engine web application We want an application, we are interested in tracking containers. Please let us explain you the concept. Co

Seeking a web developer to transfer site, Amazon Webstore Developer Seek...

Amazon Webstore Developer Seeking a web developer to transfer functionalfitnessoutlet.com to an amazon webstore. Job Description- We're looking for a Web Developer. Your r

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