

InterviewSolution
Saved Bookmarks
1. |
Explain the difference between ES5 and ES6? |
Answer» <html><body><table><tbody><tr><th>ES5</th><th>ES6</th></tr></tbody><tbody><tr><td>ES5 is the 5th edition of ECMAScript which was <a href="https://interviewquestions.tuteehub.com/tag/standardized-1224469" style="font-weight:bold;" target="_blank" title="Click to know more about STANDARDIZED">STANDARDIZED</a> in 2009. This version has been successfully implemented in all web browsers.</td><td>ES6 is the <a href="https://interviewquestions.tuteehub.com/tag/6th-332122" style="font-weight:bold;" target="_blank" title="Click to know more about 6TH">6TH</a> edition of ECMAScript which was standardized in <a href="https://interviewquestions.tuteehub.com/tag/2015-291056" style="font-weight:bold;" target="_blank" title="Click to know more about 2015">2015</a>. This version has been partially implemented in most web browsers.</td></tr><tr><td>The function keyword is <a href="https://interviewquestions.tuteehub.com/tag/mandatory-553804" style="font-weight:bold;" target="_blank" title="Click to know more about MANDATORY">MANDATORY</a> to use to define the functions.</td><td>In this, to define the function, the function keyword is not needed.</td></tr><tr><td>The return keyword is also mandatory to use to define the functions</td><td>The return keyword is not needed to define the functions.</td></tr><tr><td>ES5 has lower performance due to the absence of a few features.</td><td>ES6 has a <a href="https://interviewquestions.tuteehub.com/tag/comparatively-925352" style="font-weight:bold;" target="_blank" title="Click to know more about COMPARATIVELY">COMPARATIVELY</a> higher performance.</td></tr></tbody></table></body></html> | |