Click here for the Live repo: https://event-management-assignm-e9c86.web.app/
- React js
- Firebase (Authentication)
- Java Script
- Tailwind Css
- Meterial Tailwind / Daisy UI
- User registration system has been added.
- User can login through Google login system.
- Users can use the website without login. But login can use extra 2 route.
- Clicking on the card will open the details page.
- Dynamically loaded data from API.
let greeting;
greetign = {};
console.log(greetign);
- A:
{}
- B:
ReferenceError: greetign is not defined
- C:
undefined
Answer:
An empty object equal to grating is created. And console.log will output empty object.
function sum(a, b) {
return a + b;
}
sum(1, "2");
- A:
NaN
- B:
TypeError
- C:
"12"
- D:
3
Answer:
It will throw a type error because a number and a string cannot be concatenated
const food = ["🍕", "🍫", "🥑", "🍔"];
const info = { favoriteFood: food[0] };
info.favoriteFood = "🍝";
console.log(food);
- A:
['🍕', '🍫', '🥑', '🍔']
- B:
['🍝', '🍫', '🥑', '🍔']
- C:
['🍝', '🍕', '🍫', '🥑', '🍔']
- D:
ReferenceError
Answer
প্রথমে food নামে একটি array নেয়া হয় , পরবর্তীতে info দিয়ে একটি Object তৈরি করে favoriteFood দিয়ে array ১ম ইনডেক্স কে ধরা হয়। এবং পরিবর্তীতে object (favoriteFood) এর মান সেট করার ফলে B: ['🍝', '🍫', '🥑', '🍔']
এটি তৈরি হয়।
function sayHi(name) {
return `Hi there, ${name}`;
}
console.log(sayHi());
- A:
Hi there,
- B:
Hi there, undefined
- C:
Hi there, null
- D:
ReferenceError
Answer
A function is called, which takes one parameter. And finally the function is called in console.log, it is showing undefined for not passing any parameters.
let count = 0;
const nums = [0, 1, 2, 3];
nums.forEach((num) => {
if (num) count += 1;
});
console.log(count);
- A: 1
- B: 2
- C: 3
- D: 4