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
const formatPrice = (amount: number) => { | |
return new Intl.NumberFormat("en-US", { | |
style: "currency", | |
currency: "USD", | |
}).format(amount / 100); | |
}; | |
export default formatPrice; |
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 const quiz = { | |
totalQuestions: 20, | |
questions: [ | |
{ | |
id: 1, | |
question: 'What is the result of `typeof typeof 1`?', | |
answers: ['number', 'string', 'object', 'undefined'], | |
correctAnswer: 'string', | |
}, | |
{ |