merhaba;
arrow function syntax'i
//yerine
(error) = console.error(error)
//su sekilde olmali
(error) => console.error(error)
.then()
ve .cath()
fonksiyonlari Promise
class`indan geliyor. startInteract()
fonksiyonu değer olarak promise dondurmuyorsa .catch() fonksiyonu çalışmayacaktır.
startInteract().catch((error) => console.error(error))
NewFunction()
tanımlamışsınız ama NewFunctio()
çağırmaya çalışmışsınız