Types
const turorialFunction = (name) => {
console.log(`Hello ${name}`)
}
One of the main features of TypeScript is its ability to type-check your code. This means that you can specify the types of variables, function parameters, and return values, and the TypeScript compiler will check that your code adheres to these types. For example, you can specify that a function expects a string as an argument and returns a number like this:
we can creat react js
function test(x){
return x++
}
the end
const turorialFunction = (name) => {ddddddddddddddddddddddddddddddddddddddddddddddddddddddd
console.log(`Hello ${name}`)
}
Top comments (0)