Answer the question
In order to leave comments, you need to log in
What is the difference between a regular function and an arrow function in TypeScript?
Good evening.
There is an object
let user: {a: string, b: number, c: () => void} = {
a: "exampleString",
b: 1337,
c() {
console.log("exampleMethod");
}
};
let user: {a: string, b: number, c: () => void} = {
//...
let user: {a: string, b: number, c(): void} = {
//...
Answer the question
In order to leave comments, you need to log in
c: () => void
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question