<section class="about-us"> <div class="Art-board"> <div class="Art-board1"> <h2> <span class="black-text1">ABOUT</span> <span class="green-text">US</span> </h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Molestiae deleniti ea totam praesentium ratione, sunt impedit magni commodi voluptate deserunt cupiditate, saepe quaerat asperiores similique recusandae architecto sequi! Cumque, doloribus?</p> <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab eos nulla eveniet minima perferendis, autem veniam tenetur nesciunt vero quod, placeat expedita officiis iure voluptates quidem consectetur animi? Sequi ipsum possimus atque cupiditate necessitatibus asperiores, at, ipsam quo expedita amet dolore doloribus distinctio saepe quod sit fugiat. Aliquid, vero fugit.</p> <br> <button>Read More</button> </div> <div class="Art-board2"> <img src="https://sitenivel.com.br/wp-content/uploads/2024/03/Artboard-1@2x2.png" alt="Art Board" /> </div> </div> </section>
<section class="services"> <div class="services-heading"> <h2> <span class="black-text1">OUR</span> <span class="green-text">SERVICES</span> </h2> <p>Lorem ipsum dolor sit, amet consectetur adipisicing elit...</p> </div> <div class="servic <div class="service-item"> <div class="circle-image"> <img src="str2.png" alt="Star Circle" /> </div> <h3>Web Design</h3> <p>Lorem ipsum dolor sit amet...</p> <div class="read"><a href="#">read more</a></div> <div class="service-item"> <div class="circle-image"> <img src="str2.png" alt="Star Circle" /> </div> <h3>Graphic Design</h3> <p>Lorem ipsum dolor sit amet...</p> <div class="read"><a href="#">read more</a></div> </div> </div> </section>
<section class="portfolio"> <div class="portfolio-heading"> <h2> <span class="black-text-p-folio">OUR</span> <span class="green-text-p-folio">PORTFOLIO</span> </h2> </div> <div class="portfolio-headingp"> <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Id inventore veritatis amet dolor magnam ut fugiat repellendus reprehenderit unde iure.</p> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut, praesentium.</p> </div> <div class="text-container"> <p>WEB DESIGN</p> <p>GRAPHIC DESIGN</p> <p>BRANDING</p> <p><span class="logo1">LOGO</span></p> <p>MARKETING</p> <p>ADVERTISEMENT</p> </div> <div class="portfolio-items"> <div class="portfolio-column"> <div class="portfolio-item"> <img src="h1.png" alt="Horse"> </div> <div class="portfolio-item"> <img src="h6.png" alt="Growth Place"> </div> </div> <div class="portfolio-column"> <div class="portfolio-item"> <img src="h2.png" alt="Social Trees"> </div> <div class="portfolio-item"> <img src="h7.png" alt="Brain Works"> </div> </div> <div class="portfolio-column"> <div class="portfolio-item"> <img src="h3.png" alt="Creative Brain"> </div> <div class="portfolio-item"> <img src="h8.png" alt="Lion Group"> </div> </div> <div class="portfolio-column"> <div class="portfolio-item"> <img src="h4.png" alt="Team Success"> </div> <div class="portfolio-item"> <img src="h9.png" alt="Growth Place"> </div> </div> <div class="portfolio-column"> <div class="portfolio-item"> <img src="h5.png" alt="Rhino Group"> </div> <div class="portfolio-item"> <img src="h10.png" alt="Social Group"> </div> </div> </div> </section>
#! /usr/bin/env node k
import inquirer from "inquirer";
const answer = await inquirer.prompt([
{ message: "Enter your first number", type: "number", name: "firstNumber" },
{ message: "Enter your second number", type: "number", name: "secondNumber" },
{
message: "Select one of operators to perform action ",
type: "list",
name: "operator",
choices: ["ADDITION", "SUBTRACTION", "MULTIPLICATION", "DIVISION"],
},
]);
// CONDITIONAL STATEMENT
if (answer.operator === "ADDITION") {
console.log(answer.firstNumber + answer.secondNumber);
}
else if (answer.operator === "SUBTRACTION") {
console.log(answer.firstNumber - answer.secondNumber);
}
else if (answer.operator === "MULTIPLICATION") {
console.log(answer.firstNumber * answer.secondNumber);
}
else if (answer.operator === "DIVISION") {
console.log(answer.firstNumber / answer.secondNumber);
}
else {
"PLease select correct operator";
}
#! /usr/bin/env node
console.log("Guess a number between 1 to 8");
// now varible create
let a:number=Math.floor(Math.random()*7)
import inquirer from "inquirer";
while(true){
let input = await inquirer.prompt(
{name: "guess",type:"number",
message:"Enter your guess number you want between 1 to 8:"}
)
// provide code
let ans:number= input.guess
if (a==ans)
{console.log("congratulation your guess number is correct")
break;}
else{console.log("Sorry you guess wrong number try again ")}
}
import inquirer from 'inquirer'
let todos = [];
let condition = true;
while(condition)
{
let addTask = await inquirer.prompt(
[
{
name: 'todo',
type: 'input',
message: 'EID ki shopping kya kya ki hai'
},
{
name: 'addMore',
type: 'confirm',
message: 'aur kya khareeda',
default: 'false'
}
]
);
todos.push(addTask.todo);
condition = addTask.addMore
console.log(todos)
}
#! /usr/bin/env node
import * as readline from "readline";
// Define the interface for a question
interface Question {
question: string;
options: string[];
correctAnswerIndex: number;
}
// Define the interface for a quiz
interface Quiz {
questions: Question[];
}
// Define a function to shuffle an array
function shuffleArray
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
return array;
}
// Define a function to run the quiz
function runQuiz(quiz: Quiz, quizNumber: number): void {
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
rl.question(`Quiz ${quizNumber}: Press Enter to start the quiz...`, () => {
let score = 0;
// Shuffle questions to randomize order
const shuffledQuestions = shuffleArray(quiz.questions);
askQuestion(0);
function askQuestion(index: number): void {
if (index < shuffledQuestions.length) {
const question = shuffledQuestions[index];
console.log(`Question ${index + 1}: ${question.question}`);
for (let j = 0; j < question.options.length; j++) {
console.log(`${j + 1}. ${question.options[j]}`);
}
rl.question("Enter your answer (1, 2, 3, etc.): ", (userAnswer) => {
const userAnswerIndex = parseInt(userAnswer) - 1;
if (userAnswerIndex === question.correctAnswerIndex) {
console.log("Correct!");
score++;
} else {
console.log(
"Incorrect! The correct answer is: " +
question.options[question.correctAnswerIndex],
);
}
askQuestion(index + 1);
});
} else {
rl.close();
const percentageScore = (score / shuffledQuestions.length) * 100;
console.log(
`Quiz ${quizNumber} Complete! Your Score: ${score}/${shuffledQuestions.length} (${percentageScore}%)`,
);
}
}
});
}
// Example quiz
const myQuiz: Quiz = {
questions: [
{
question: "What is the capital of France?",
options: ["London", "Paris", "Berlin"],
correctAnswerIndex: 1,
},
{
question: "What is 2 + 2?",
options: ["3", "4", "5"],
correctAnswerIndex: 1,
},
{
question: "Which planet is known as the Red Planet?",
options: ["Earth", "Mars", "Venus"],
correctAnswerIndex: 1,
},
],
};
// Run the quiz
runQuiz(myQuiz, 1);
// //EXERCISE 45 TYPESCRIPT ANSWER
// // EXERCISE_1
// console.log("Hello World!")
// // EXERCISE_2
// let personName: string= "ERIC";
// console.log(`hellow ${personName}, would you like to learn some Python today?`);
// // EXERCISE_3
// // // lower case
// // let personName: string ="Babar"
// // console.log("lowercase:", personName.toLowerCase());
// // // upper case
// // console.log("uppercase:", personName.toLocaleUpperCase());
// // // Title case
// // console.log("titlecase:", personName.replace(/\bw/g,c => c.toUpperCase()));
// // EXERCISE_4
// let qoute: string= "A person who never made a mistake never tried anything new";
// let author: string= "Albert Einstein"
// console.log(`${author} once said, "${qoute}`);
// // EXERCISE_5
// let qoute: string= "A person who never made a mistake never tried anything new";
// let famous_person="Albert Einstein";
// let message=`${famous_person} once said, ${qoute}`;
// console.log(message);
// // EXERCISE_6
// let personName: string =`\n\t BABAR AZAM\t\n`;
// console.log(personName);
// let stripped: string = personName.trim();
// console.log(stripped);
// // EXERCISE_7 &EXERCISE_8
// console.log(87 +3);
// console.log(54 -3);
// console.log(4 *2);
// console.log(16 / 2);
// // EXERCISE_9
// // let favoriteNumber: number= 4;
// // console.log(`My favorite Number is ${favoriteNumber}`);
// // EXERCISE_10
// // program written by:BABAR
// //Current date: 19/02/2024
// // this is simple 1st program we write just write hello world
// // console.log('hellow world')
// // let names: string[] =['EINSTEIN','AFRIDI','RONALDO','KOHLI'];
// // for(let i = 0; i
// // }
// // EXERCISE_11
// // let members: string[] =['azam','saqlain','mehmood','saba','sana'];
// // for(let i=0; i
// // }
// // EXERCISE_12
// let members: string[] =['azam','saqlain','mehmood','saba','sana'];
// let message: string='kal birthday hai kis ki:';
// for(let i=0; i
// }
// // EXERCISE_13
// let members: string[] =['bike','car'];
// for(let i=0; i
// }
// // EXERCISE_14
// let guest_list : string [] = ['ali','farhan','raza','ayesha'];
// for(let i=0; i
// }
// export{guest_list}
// // EXERCISE_15
// let guest_list : string [] = ['ali','farhan','raza','ayesha'];
// // for(let i=0; i
// // }
// let not_present : string = 'farhan';
// let new_guest : string = 'Babar Azam';
// guest_list[1] = new_guest;
// // for(let i=0; i
// // }
// // EXERCISE_16
// let guest_list : string [] = ['ali','farhan','raza','ayesha'];
// // for(let i=0; i
// // }
// let not_present : string = 'farhan';
// let new_guest : string = 'Babar Azam';
// guest_list[1] = new_guest;
// // for(let i=0; i
// // }
// // EXERCISE_17
// let guest_list : string [] = ['ali','farhan','raza','ayesha'];
// // for(let i=0; i
// // }
// let not_present : string = 'farhan';
// let new_guest : string = 'Babar Azam';
// guest_list[1] = new_guest;
// // for(let i=0; i
// // }
// guest_list.unshift('shaheen','sarfaraz','rizwan');
// // for(let i=0; i
// // }
// console.log('\nUnfortunately we can not arrange big table,Only two people invited.');
// while(guest_list.length>2){
// let remove_guest = guest_list.pop();
// console.log(`sorry MR. ${remove_guest} you are not invited for dinner.`);
// }
// for(let i=0; i
// }
// guest_list.splice(0,2,);
// console.log(guest_list);
// // EXERCISE_18
// let places : string [] = ['cape town','delhi','faisalbad','bankok','ahmedabad']
// // console.log('original :' + places);
// // Print your array in alphabetical order without modifying the actual list.
// // console.log('copy ' + [...places].sort());
// // • Show that your array is still in its original order by printing it.
// console.log('original :' + places);
// // • Print your array in reverse alphabetical order without changing the order of the original list.
// console.log('copy ' + [...places].sort().reverse());
// // • Show that your array is still in its original order by printing it again.
// console.log('copy ' + [...places].sort().reverse());
// // • Reverse the order of your list. Print the array to show that its order has changed.
// console.log('original :' + places.sort());
// // • Reverse the order of your list again. Print the list to show it’s back to its original order.
// console.log('original :' + places.sort().reverse());
// // EXERCISE_19
// let guest_list : string [] = ['ali','farhan','raza','ayesha'];
// // for(let i=0; i
// // }
// let not_present : string = 'farhan';
// let new_guest : string = 'Babar Azam';
// guest_list[1] = new_guest;
// // for(let i=0; i
// // }
// // • Reverse the order of your list. Print the array to show that its order has changed.
// console.log('original :' + places.sort());
// // • Reverse the order of your list again. Print the list to show it’s back to its original order.
// console.log('original :' + places.sort().reverse());
// // EXERCISE_20
// const languages : string [] = ['english','urdu','hindi','french','arabic']
// console.log("List of countries:")
// for(let top of languages){
// console.log(top)
// }
// // EXERCISE_21
// interface Item {
// name: string;
// price: number;
// }
// // Create two objects using the interface
// const book: Item = {
// name: "ESSENTIAL TYPESCRIPT ",
// price: 12.99,
// };
// const apple: Item = {
// name: "Apple",
// price: 0.99,
// };
// // Access and print the object properties
// console.log(`Book name: ${book.name}, price: $${book.price}`);
// console.log(`Apple name: ${apple.name}, price: $${apple.price}`);
// // EXERCISE_22
// // Define an interface for the object structure
// interface Item {
// name: string;
// price: number;
// }
// // Create two objects using the interface
// const book: Item = {
// name: "ESSENTIAL TYPESCRIPT ",
// price: 12.99,
// };
// const apple: Item = {
// name: "Apple",
// price: 0.99,
// };
// // Access and print the object properties
// console.log(`Book name: ${book.name}, price: $${book.price}`);
// console.log(`Apple name: ${apple.name}, price: $${apple.price}`);
// // EXERCISE_23
// let cars: string = 'subaru';
// // Test 1: Equality comparison (True)
// console.log("Is car == 'subaru'? I predict True.");
// console.log(car == 'subaru'); // True
// // Test 2: Strict equality comparison (True)
// console.log("Is car === 'subaru'? I predict True.");
// console.log(car === 'subaru'); // True
// // EXERCISE_24
// let car: string = 'subaru';
// let age: number = 25;
// let numbers: number[] = [1, 2, 3, 4];
// // **String Tests**
// // Test 1: Equality (True)
// console.log("Is car == 'Subaru'? I predict True.");
// console.log(car == 'Subaru'); // True (case-insensitive)
// // Test 2: Strict equality (False)
// console.log("Is car === 'Subaru'? I predict False.");
// console.log(car === 'Subaru'); // False (case-sensitive)
// // Test 3: Inequality (True)
// console.log("Is car != 'Toyota'? I predict True.");
// console.log(car != 'Toyota'); // True
// // Test 4: Inequality (False)
// console.log("Is car !== 'subaru'? I predict False.");
// console.log(car !== 'subaru'); // False (case-sensitive)
// // **Lowercase Function Tests**
// // Test 5: Lowercase conversion (True)
// console.log("Is car.toLowerCase() == 'subaru'? I predict True.");
// console.log(car.toLowerCase() == 'subaru'); // True (converted to lowercase)
// // Test 6: Lowercase conversion (False)
// console.log("Is car === car.toLowerCase()? I predict False.");
// console.log(car === car.toLowerCase()); // False (original value remains uppercase)
// // **Numerical Tests**
// // Test 7: Equality (True)
// console.log("Is age == 25? I predict True.");
// console.log(age == 25); // True
// Test 8: Inequality (False)
// console.log("Is age != 30? I predict True.");
// console.log(age != 30); // True
// // Test 9: Greater than (False)
// console.log("Is age > 30? I predict False.");
// console.log(age > 30); // False
// // Test 10: Less than or equal (True)
// console.log("Is age <= 25? I predict True.");
// console.log(age <= 25); // True
// // EXERCISE_25 &EXERCISE_26
// if(alien_color == "green"){
// console.log("the player just earned 5 points.");
// }
// // Write one version of this program that passes the if test and another that fails.
// // (The version that fails will have no output.)
// alien_color = "red";
// if(alien_color == "green"){
// console.log("the player just earned 5 points.");
// }
// // EXERCISE_27
// let alien_color: string ="green";
// // If the alien is green, print a message that the player earned 5 points.
// if(alien_color == "green"){
// console.log("the player earned 5 points.");
// }
// // • If the alien is yellow, print a message that the player earned 10 points.
// else if(alien_color == "yellow"){
// console.log("the player just earned 10 points.");
// }
// // • If the alien is red, print a message that the player earned 15 points.
// else if(alien_color == "red"){
// console.log("the player just earned 15 points.");
// }
// else{
// console.log("Please select right color")
// }
// // • Write three versions of this program, making sure
// // each message is printed for the appropriate color alien.
// // version 2
// alien_color ="red";
// if(alien_color == "green"){
// console.log("the player earned 5 points.");
// }
// else if(alien_color == "yellow"){
// console.log("the player just earned 10 points.");
// }
// else if(alien_color == "red"){
// console.log("the player just earned 15 points.");
// }
// else{
// console.log("Please select right color")
// }
// // version 3
// alien_color ="yellow";
// if(alien_color == "green"){
// console.log("the player earned 5 points.");
// }
// else if(alien_color == "yellow"){
// console.log("the player just earned 10 points.");
// }
// else if(alien_color == "red"){
// console.log("the player just earned 15 points.");
// }
// else{
// console.log("Please select right color")
// }
// // EXERCISE_28
// let age: number = 15;
// if(age<2){
// console.log("the person is a baby.")
// }
// // • If the person is at least 2 years old but less than 4, print
// // a message that the person is a toddler.
// else if(age>=2 && age <4){
// console.log("person is a toddler.")
// }
// // • If the person is at least 4 years old but less than 13,
// // print a message that the person is a kid.
// else if(age>=4 && age <13){
13>
// console.log("person is a kid.")
// }
// // • If the person is at least 13 years old but less than 20,
// // print a message that the person is a teenager.
// else if(age>=13 && age <20){
// console.log("person is a teenager.")
// }
// // • If the person is at least 20 years old but less than 65,
// // print a message that the person is an adult.
// else if(age>=20 && age <65){
// console.log("person is a adult.")
// }
// // • If the person is age 65 or older, print a
// // message that the person is an elder
// else{
// console.log("Person is an elder.")
// }
// // EXERCISE_29
// let favorite_fruits : string [] = ['apple','orange','grapes']
// if(favorite_fruits.includes('apple')){
// console.log('I really like apple!')
// }
// if(favorite_fruits.includes('orange')){
// console.log('I really like orange!')
// }
// if(favorite_fruits.includes('mango')){
// console.log('I really like mango!')
// }
// if(favorite_fruits.includes('grapes')){
// console.log('I really like grapes!')
// }
// if(favorite_fruits.includes('bananas')){
// console.log('I really like bananas!')
// }
// // EXERCISE_30
// let users : string [] = ['sana','babar','saba','taha','admin']
// for(let user of users){
// if (user === "admin"){
// console.log("hello admin, would you like to see a status report?")
// }
// else{
// console.log(`Hello ${user}, 'thank you for logging in again.'`)
// }
// }
// // EXERCISE_31
// let users : string [] = ['sana','babar','saba','taha','admin']
// if(users.length === 0){
// console.log("We need to find some users! ")
// }
// // • Remove all of the usernames from your array,
// // and make sure the correct message is printed
// else{
// users = [];
// console.log("All user have been removed " + users.length)
// }
// // EXERCISE_32
// let current_users: string[] = ["saba", "admin", "ahmed", "babar", "raza"];
// let new_users: string[] = ["fawad", "hussain", "user7", "admin", "User9"];
// new_users.forEach((newUser) => {
// if (
// current_users.some(
// (currentUser) => currentUser.toLowerCase() === newUser.toLowerCase()
// )
// ) {
// console.log(`${newUser} will need to enter a new username.`);
// } else {
// console.log(`${newUser} is available.`);
// }
// });
// // EXERCISE_33
// let myNumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9];
// // for loop
// for(let i = 0; i < myNumbers.length; i++){
>
// // now we use conditions
// if(myNumbers[i] == 1){
// console.log(`${myNumbers[i]}st`);
// }else if(myNumbers[i] == 2){
// console.log(`${myNumbers[i]}nd`);
// }else if(myNumbers[i] == 3){
// console.log(`${myNumbers[i]}rd`);
// }else if(myNumbers[i] >= 4 && myNumbers[i] <= 9){
// console.log(`${myNumbers[i]}th`);
// }
// }
// // EXERCISE_34
// let myPizza = ["Cheeze Pizza", "Pepperoni Pizza", "Vegeterian Pizza"];
// // print only names of pizza
// for (let i = 0; i < myPizza.length; i++) {
// console.log(myPizza[i]);
// }
// // EXERCISE_35
// let animal: string[] = ["dog", "elephant", "rabbit"];
// animals.forEach(animal => {
// console.log(`A ${animal} would make a great pet.`);
// });
// console.log("Any of these animals would make a great pet!");
// // EXERCISE_36
// function make_shirt(size: string, message: string) {
// console.log(`Making a ${size} t-shirt with the message "${message}" printed on it.`);
// }
// make_shirt("medium", "Code is Life");
// // EXERCISE_37
// function make_shirt(size: string = "large", message: string = "I love TypeScript") {
// console.log(`Making a ${size} t-shirt with the message "${message}" printed on it.`);
// }
// make_shirt(); // Default large and message
// make_shirt("medium"); // Default message, medium size
// make_shirt("small", "Dive into Coding"); // Custom message, small size
// // EXERCISE_38
// // function describe_city(nameOfCity: string, country: string = "Pakistan"){
// // return `${nameOfCity} is in ${country}`;
// // };
// // // 3 cities
// // let city1 = describe_city("South africa,cape town");
// // let city2 = describe_city("India,delhi");
// // let city3 = describe_city("Pakistan, Hyderabad");
// // let city4 = describe_city("Dubai", "UAE");
// // console.log(city1);
// // console.log(city2);
// // console.log(city3);
// // console.log(city4);
// // EXERCISE_39
// function city_country(city: string, country: string){
// // return `"${city}, ${country}"`
// console.log(`"${city}, ${country}"`)
// }
// city_country("Karachi", "Pakistan");
// let mycities = city_country("Karachi", "Pakistan");
// console.log(mycities);
// console.log(city_country("Dubai", "UAE"));
// console.log(city_country("London", "United Kingdom"));
// console.log(city_country("Riyaz", "Saudi Aarbia"));
// // EXERCISE_40
// function myAlbum(artistName: string, albumTitle: string){
// return {artistName, albumTitle}
// }
// let album1 = myAlbum("Ali", "Rang-e-Mohabat");
// let album2 = myAlbum("Madad", "Roshan Andhera");
// let album3 = myAlbum("Ayaz", "Mausam-e-Dil");
// console.log(album1);
// console.log(album2);
// console.log(album3);
// // Number of tracks
// function myAlbum2(artistName: string, albumTitle: string, numberOfTracks?: number){
// return {artistName, albumTitle, numberOfTracks}
// }
// let album4 = myAlbum2("Ali", "dil hai", 30);
// let album5 = myAlbum2("Madad", "ajeeb kahani", 55);
// let album6 = myAlbum2("babar", "typescript ki coding", 78);
// console.log(album4);
// console.log(album5);
// console.log(album6);
// // EXERCISE_41
// // let magicianNames = ["Ayaz", "Fayaz", "Tariq", "Madad"];
// // function show_magicians(){
// // for(let item of magicianNames){
// // console.log(item);
// // }
// // };
// // EXERCISE_42
// let magicianNames = ["Ayaz", "Fayaz", "Tariq", "Madad"];
// function show_magicians(greet: string){
// for(let item of magicianNames){
// console.log(greet, item);
// }
// };
// show_magicians("Hello, How are you Mr.");
// show_magicians("Hello, "); //2nd time calling
// // EXERCISE_43
// let magicianNames2 = ["Ayaz", "Fayaz", "Tariq", "Madad"];
// // making a copy of an array
// let magicianNamesCopy = [...magicianNames2];
// function show_magicians(greet: string){
// let withGreetings = "";
// for(let item of magicianNamesCopy){
// withGreetings += `${greet} ${item}\n`;
// }
// return withGreetings;
// };
// let myGreetings = show_magicians("Hello");
// let makeArray = myGreetings.split('\n');
// console.log(makeArray);
// // original array
// console.log(magicianNames2)
// // EXERCISE_44
// function mySandwiches(...items: string []){
// return `I want Sandwich of ${items}`;
// };
// let collection1 = mySandwiches("Ham", " Cheeze", " Lettuce"); // can add as many you wish
// let collection2 = mySandwiches("Turkey", " Swiss");
// let collection3 = mySandwiches(); // without arrgument
// console.log(collection1);
// console.log(collection2);
// console.log(collection3);
// // EXERCISE_45
// function carDetails (manufacturer: string, modelName: string, ...additionalInfo){
// const car = {manufacturer, modelName, ...Object.fromEntries(additionalInfo)};
// return car;
// };
// const myCarDetails = carDetails("Toyota", "Corolla", ['color', 'blue'], ['year', 2022]);
// console.log(myCarDetails);