O'Reilly logo

Oracle® Web Application Programming for PL/SQL® Developers by Benjamin Rosenzweig, Solomon Morse, Melanie Caffrey, Susan Boardman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unit 7.2. JavaScript Syntax

Variables, Literals, and Value Types

Value (Data) Types

The value types in JavaScript are:

  • Numbers

  • Boolean—“true” or “false”

  • Strings

  • Null—keyword

  • Undefined—the value of an unassigned variable

JavaScript is a loosely typed language. The word “typed” here refers to the data type and not the keyboard habits of coders. Unlike languages such as PL/SQL, there is no need to declare a variable’s data type in JavaScript. Furthermore, the same variable can be used to store different data types. JavaScript automatically does the data conversion for you. In PL/SQL, a variable declared to be of data type Number can only hold a value of the data type Number. Not so in JavaScript. A variable can be assigned a Number data type value ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required