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

Need help in wordpress programming, Wordpress programming We are creativ...

Wordpress programming We are creative agency seeking a developer proficient in wordpress programming for our client, a real estate team. We need layout content by now complet

I need a drupal 7 developer, I need a Drupal 7 developer I want a good d...

I need a Drupal 7 developer I want a good developer with a long Drupal development experience to participate in several Drupal 7 projects. I'm seeking someone with a high level

Need to build website for new business, Website for new business HTML, C...

Website for new business HTML, CSS, PHP, Drupal, WordPress Job Description- We're seeking a Web Developer/Designer to create a website for our new business. Our new busine

We need a fast- top-notch- ruby and rails developer, We need a Fast, Top-No...

We need a Fast, Top-Notch, Ruby (and Rails) Developer We're seeking a backup Rails developer for our creative team. We by now have a Senior Developer/Analyst and a part-time PHP

Gravity forms wp expert wanted to re-program form, Gravity Forms WP Expert ...

Gravity Forms WP Expert Wanted To Re-Program Form We want a TRUE WordPress/Gravity Forms developer who is expert at customizing a form with a specific UI/Look as well as Feel. O

Hidden input, Yet another kind of input is HIDDEN input. A HIDDEN in...

Yet another kind of input is HIDDEN input. A HIDDEN input is a name/value pair which is returned to you but do

Serbian php developer wanted for long terms, Serbian PHP Developer wanted >...

Serbian PHP Developer wanted > Must be creative with UI Experience, etc We are interested for a RESPONSIBLE as well as well-organized programmer with the following requirements

Need help to convert wix website to shopify, Need help to Convert wix websi...

Need help to Convert wix website to shopify We want to convert our wix web store to shopify platform. No requirement to change the design. Desired Skills are Shopify

We are developing a social network as well as marketplace, Individual Devel...

Individual Developer for charity-focused social network We are developing a social network as well as marketplace for charities and need a programmer proficient in php, mysql, c

Messagebox in javascript, In this section, we learn about the dialog boxes....

In this section, we learn about the dialog boxes. This topic is significant for understanding the way parameters are passed among distinct windows. This mechanism is key component

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