✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Le code suivant génère une erreur en TS :
class Queue<T> {
private data = [];
push = (item: T) => this.data.push(item);
pop = (): T => this.data.shift();
}
const queue = new Queue<number>();
queue.push("1");
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!