try{thrownewError("End of life!");}catch{// ✋console.log("^ no params for catch, you are dead anyway!");}
JSON ⊂ ECMAScript
123
// Without the proposal:"foo<U+2028>bar<U+2029>baz"// → SyntaxError
123
// With the proposal:"foo<U+2028>bar<U+2029>baz"// does not throw
well-formed JSON.stringify
12
JSON.stringify('\uD800');// → '"\\ud800"'
Function#toString
12345
function/* this is bar */bar(){}bar.toString();// 'function /* this is bar */ foo () {}'// ^ perviously this was not the case.
Array#sort stability
123456789101112
[{name:"Jan",age:20},{name:"Jhon",age:20},{name:"David",age:18},{name:"Ram",age:18},{name:"Sita",age:18},{name:"Ravan",age:18},{name:"Asura",age:12},{name:"Milly",age:12},].sort((m,n)=>m.age-n.age));// People with the same age retain their order.