jQuery : jQuery uses (new Function("return " + data))(); instead of eval(data); to parse JSON, why?

Channel:
Subscribers:
76,600
Published on ● Video Link: https://www.youtube.com/watch?v=3QVh20v47rQ



Duration: 1:41
0 views
0


jQuery : jQuery uses (new Function("return " + data))(); instead of eval(data); to parse JSON, why?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

So here is a secret hidden feature I promissed to tell you.
This is a YouTube's feature which works on Desktop.
First, Ensure that the video is playing before proceeding.
Then, type the letters 'awesome' on the keyboard.
You will see a flashing rainbow instead of a regular progress bar on YouTube.

A brief presentation of myself,
Good day, I am Delphi.
I am at your disposal to help you with any questions you have.
jQuery : jQuery uses (new Function("return " + data))(); instead of eval(data); to parse JSON, why?
Don't hesitate to leave a comment or start a chat if you have a more specific question.
Your input is valuable, so please comment below if you have an answer or any insights to the answer.
Your answer will be recognized and appreciated, and I will 'heart' it to show my appreciation.
jQuery Function("return JSON, : instead why? jQuery parse data))(); uses to + (new " of eval(data);




Other Videos By Hey Delphi


2023-05-21SQL : SQL: how to select next id given an id
2023-05-21R : Different results from deparse in R 3.4.4 and R 3.5
2023-05-21C++ : val != std::numeric_limits double ::infinity() or !isinf(val) or isfinite(val)
2023-05-21C++ : Signal and Slot vs Multithreading in Boost Library
2023-05-21Django : Converting old function-based generic CRUD views to the new style class-based generic CRUD
2023-05-21jQuery : Getting computed background style in Firefox
2023-05-21CSS : CSS precedence
2023-05-21Array : Find object having maximum value for the `id` property in an array of objects
2023-05-21R : Undocumented data sets: '.Random.seed' (R CMD check)
2023-05-21Windows : Fastest way to get shell icon
2023-05-21jQuery : jQuery uses (new Function("return " + data))(); instead of eval(data); to parse JSON, why?
2023-05-21C# : Azure WebJob Command Timeout
2023-05-21SQL : typeof Equivalent for Object Types in PL/SQL
2023-05-21C++ : CMFCMenuButton not properly repainting when toggling high contrast mode
2023-05-21C++ : Undefined/Unspecified/Implementation-defined behaviour warnings?
2023-05-21Android : Having issue on Real Device using vector image in android. SVG-android
2023-05-21C++ : Calling virtual functions inside constructors
2023-05-21HTML : Angular Polymer data-binding
2023-05-21PHP : Best practice, overriding __construct() versus providing init() method
2023-05-21jQuery : Detect left/right-swipe on touch-devices, but allow up/down-scrolling
2023-05-21Array : Firebase Child Added Is Called Every time a Child is Changed