This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface IAnswer { | |
answer: string; | |
description: string; | |
} | |
export interface IFunFact { | |
text: string; | |
number: number | string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TypeScript | |
function isEqual(a: string, b: string): boolean { | |
return a === b; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// JSDOC | |
/** | |
* Check 2 strings are equals | |
* @param {string} a | |
* @param {string} b | |
* @return {boolean} | |
*/ | |
function isEqual(a, b) { | |
return a === b; | |
} |