Typescript functions

From wikinotes
Revision as of 03:09, 11 December 2022 by Will (talk | contribs) (Created page with "= Type Annotations = <blockquote> <syntaxhighlight lang="typescript"> function warn(msg: string) { console.log(msg); } </syntaxhighlight> </blockquote><!-- Type Annotations -->")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Type Annotations

function warn(msg: string) {
    console.log(msg);
}