JavaScript vs XML Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What can data objects be formatted as?

A
  • XML
  • JSON
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is XML?

A

XML (extensible markup language) is a markup language based on tags, similar to HTML; it is used to transport data around a network and also for data storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is JSON?

A

JSON (JavaScript object notation) is a text-based, human-readable data format that is used to transmit data around a network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which is better in term of human readability?

A

Human readability – easier to read in JSON as it is written as a list of objects and their values, whereas XML data is more cluttered as it is contained within markup tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which is better in term of parsing?

A

Parsing – faster to parse in JSON as it is clearly defined as a list objects and their values, whereas in XML each object and its value have to be removed from their tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which is better in term of code creation?

A

Code creation – JSON creates less code for a given data set than XML, and the coding is easier to create as the JSON syntax is simpler than

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which is better in term of data types?

A

Data types – XML can be used to create any data type required where this data structured into an easy-to-read format, whereas JSON may have too limited a range of data for all applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly