It is a solution to the Coding Ninjas CareerCamp Web dev-test2. Please visit the Coding Ninjas career camp website CodingNinjas CareerCamp for more details.
It is a meals app where you can search for any meal, displaying the results. You can see the details of every meal item, and you can bookmark and remove the bookmarked meal item.
- Live Site URL: Live Website
First, I designed the skeleton of the design using HTML and CSS. Then, I started coding in Javascript and also made changes in HTML and CSS.
- HTML
- CSS
- JavaScript
I got to learn how to use local storage for saving and removing items
async function getBookmarkData(url) {
const response = await fetch(url);
var data = await response.json();
myObj_serial = JSON.stringify(data.meals);
for (var i of data.meals) {
localStorage.setItem(i.idMeal, myObj_serial);
}
}
async function removeBookmarkData(url) {
const response = await fetch(url);
var data = await response.json();
myObj_serial = JSON.stringify(data);
for (var i of data.meals) {
localStorage.removeItem(i.idMeal);
}
}- LinkedIn - Khaidem Sandip Singha
- Twitter - @KurosakiCoder
I have done this project from scratch by referencing the websites that I mentioned.


