Which SQL command is used to permanently remove a table and all its data? Advanced SQL DeveloperEasy Try Now
Which clause is used to rename a column or table in a SQL query result? Advanced SQL DeveloperEasy Try Now
Which SQL keyword prevents duplicate rows when combining results from two SELECT statements? Advanced SQL DeveloperEasy Try Now
What is the difference between `Array.prototype.reduceRight()` and `reduce()`? JavaScript ProfessionalMedium Try Now
What is the output of the following? “`js class EventEmitter { #handlers = {}; on(event, handler) { (this.#handlers[event] ??= []).push(handler); } emit(event, data) { this.#handlers[event]?.forEach(h => h(data)); } } const ee = new EventEmitter(); ee.on(‘test’, v => console.log(v * 2)); ee.emit(‘test’, 5); ee.emit(‘missing’, 5); “` JavaScript ProfessionalMedium Try Now
What is `Intl.Collator` used for and why is string comparison with `localeCompare()` important? JavaScript ProfessionalMedium Try Now
What is the output of the following? “`js async function* generate() { for (const n of [1, 2, 3]) { yield await Promise.resolve(n * 10); } } (async () => { const results = []; for await (const val of generate()) { results.push(val); } console.log(results); })(); “` JavaScript ProfessionalMedium Try Now
What is the purpose of `Object.defineProperty()` and when must you use it instead of direct assignment? JavaScript ProfessionalMedium Try Now
What is the output of the following? “`js const handler = { apply(target, thisArg, args) { return target.apply(thisArg, args) * 2; } }; const double = new Proxy(x => x + 1, handler); console.log(double(5)); “` JavaScript ProfessionalMedium Try Now