Skip to main content
  • 1069 Accesses

Abstract

Data and decision making are fundamental to every “intelligent” program. We’ll begin this chapter by looking at how JavaScript understands, or represents, data. This is important because JavaScript works with a number of data types and manipulates data according to its data type. You can generate unexpected results by mismatching data of different types. We’ll look at some of the more common data type problems, and you’ll see how to convert one type of data to another.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 39.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Christian Heilmann

About this chapter

Cite this chapter

(2006). Data and Decisions. In: Beginning JavaScript with DOM Scripting and Ajax. Apress. https://doi.org/10.1007/978-1-4302-0184-7_2

Download citation

Publish with us

Policies and ethics