Skip to content

Instantly share code, notes, and snippets.

View DevAntonioRogers's full-sized avatar
🤓
Getting Back into things

Antonio Rogers DevAntonioRogers

🤓
Getting Back into things
View GitHub Profile
@DevAntonioRogers
DevAntonioRogers / data.ts
Created March 15, 2024 03:00
Next.js 14 Quiz App
export const quiz = {
totalQuestions: 20,
questions: [
{
id: 1,
question: 'What is the result of `typeof typeof 1`?',
answers: ['number', 'string', 'object', 'undefined'],
correctAnswer: 'string',
},
{
@DevAntonioRogers
DevAntonioRogers / formatPrice.ts
Created January 19, 2024 22:53
Let's Build a Full Stack Dev T-Shirt E-commerce Website with Next.js 14
const formatPrice = (amount: number) => {
return new Intl.NumberFormat("en-US", {
style: "currency",
currency: "USD",
}).format(amount / 100);
};
export default formatPrice;