LECTURE-3
LECTURE-3
? XML ? JSON ? Exceptions ? Debugging using Chrome Developer Tools ? JS Events
CS3101: Programming Languages: Javascript
1
Ramana Isukapalli
XML ? EXTENDED MARKUP LANGUAGE
? XML is a markup language, like HTML ? Designed to carry data
? Not to display data
? XML tags are NOT predefined.
? Unlike HTML ? You must define your own tags
? Self-descriptive ? Represented in plain text.
CS3101: Programming Languages: Javascript
2
Ramana Isukapalli
A SIMPLE EXAMPLE
Tove Jani Reminder Let's meet tomorrow!
Summary: 1. User defined tags. 2. Self descriptive
CS3101: Programming Languages: Javascript
3
Ramana Isukapalli
JSON
? Text based
? Very useful in transferring text data over the web ? Language independent
? Used in JS, Java, PHP, etc.
? Provides easy means to
? Define JS objects ? Can convert JS objects to strings and vice-versa ? Different languages have functions for conversion.
CS3101: Programming Languages: Javascript
4
Ramana Isukapalli
JSON EXAMPLE
? var person = { "firstname": "John", "lastname": "Doe"; "age": 50, "address": { "street": "11 Broadway", "city": "New York City" } };
? Can access data of individual fields
? person.firstName (or) person[firstName] ? person.lastName (or) person[lastName] ? person.address.street(or) person.address[street]
CS3101: Programming Languages: Javascript
5
Ramana Isukapalli
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- marketing management pdf lecture notes
- strategic management lecture notes pdf
- strategic management lecture notes
- philosophy 101 lecture notes
- philosophy lecture notes
- philosophy of education lecture notes
- financial management lecture notes
- financial management lecture notes pdf
- business management lecture notes
- introduction to philosophy lecture notes
- business management lecture notes pdf
- introduction to management lecture notes