Colon after function declaration in javascript

Viewed 1819

I am going through source code of Vue.js. In almost all the function declarations I find a new way of defining functions

function isStringStart (chr: number): boolean {
  return chr === 0x22 || chr === 0x27
}

Can somebody explain me what is this kind of function declaration called?

1 Answers
Related