Test string as a literal and as an object
A literal is a notation for representing a fixed value in source code. Almost all programming languages have notations for atomic values such as integers, floating-point numbers, and strings, and usually for booleans and characters; some also have notations for elements of enumerated types and compound values such as arrays, records, and objects.
An object is an unordered list of primitive data types (and sometimes reference data types) that is stored as a series of name-value pairs. Each item in the list is called a property (functions are called methods).
- What is noscript tag?
- Difference between '=', '==' and '===' operators?
- What is Browser Object Model
- What is Associative Array? How do we use it?
- What's the Difference Between Class and Prototypal Inheritance?