Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface IFaqItem extends Document {
- question: string;
- answer: string;
- }
- const faq = [
- {
- questione:"Is it possible to obtain the source code for each video?",
- answer:"One of our initial rules for lecturers is that they are obligated to share the source code for any video that involves coding."
- },
- {
- question:"How long is the access period for the course I purchased?",
- answer:"The duration of access is determined by each lecturer upon purchase, with a minimum period of 3 months."
- },
- {
- question:"Is it possible to download the videos from a course I have purchased?",
- answer:"Downloading videos is not permitted as it is in compliance with our commitment to preserving the copyrights of our lecturers."
- },
- {
- question:"What happens if I encounter technical issues while accessing the course content?",
- answer:"In the event of technical issues, please contact our support team at [support email/phone number]. We are committed to resolving any technical difficulties you may encounter during your course access."
- }
- ]
- // const faqItems = faq.map((item: any) => ({ -> gives undefined
- // question: item.question,
- // answer: item.answer,
- // }));
- const faqItems = Promise.all(
- faq.map(async (item: any) => {
- return { question: item.question, answer: item.answer };
- })
- );
- faqItems.then((res) => console.log(res)).catch((error) => console.log("error: ", error))
- // console.log(faqItems);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement