vendredi 30 octobre 2020

Related to JavaScript Classes

I am new to JS.

I want to know if I can destroy or delete a JS class instance during runtime.

For example, its the code :

class Car {
  // code
}

let c = new Car();

//now I want to delete or destroy the class instance c

What can I do now?

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire