You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q1. What is the purpose of JSON-P (JSON with padding) in web development, and how is it typically used?
A. To validate JSON data before parsing it in JavaScript.
B. To provide additional padding for JSON objects to improve readability. C. To overcome the same-origin policy limitation when making cross-domain AJAX requests.
D. To compress JSON data for faster transmission over the network.
Q2. In a JSON document, how can you represent a key that contains special characters, such as spaces or hyphens, to ensure proper parsing and access in JavaScript?
A. Wrap the key in single quotes.
B. Enclose the key in square brackets.
C. Use backslashes before special characters. D. Enclose the key in double quotes.
It is good question and basically ask me in my interview of intership.
The text was updated successfully, but these errors were encountered:
I'm submitting an ISSUE: please check
Q1. What is the purpose of JSON-P (JSON with padding) in web development, and how is it typically used?
A. To validate JSON data before parsing it in JavaScript.
B. To provide additional padding for JSON objects to improve readability.
C. To overcome the same-origin policy limitation when making cross-domain AJAX requests.
D. To compress JSON data for faster transmission over the network.
Q2. In a JSON document, how can you represent a key that contains special characters, such as spaces or hyphens, to ensure proper parsing and access in JavaScript?
A. Wrap the key in single quotes.
B. Enclose the key in square brackets.
C. Use backslashes before special characters.
D. Enclose the key in double quotes.
It is good question and basically ask me in my interview of intership.
The text was updated successfully, but these errors were encountered: