Posts

What is destructuring in javascript? Let us explore

Image
Destructuring in javascipt is taking out values from arrays or objects and storing them in variables. Sound simple? yes it is simple.  now let us move on another use case. suppose we only wnt the fruits values, not the vegetables. So in that case what will we do? Remember this is an array and array contains data in order. But using restructuring we can skip any no of elements in our array and can retrieve the only elements we want.

Done with my second mini project !

Image
 Hey Friends.. Today I finished my second project from the " 20 vanilla JS project" course. I struggled while making the UI of this project and applying the css as  this project consist of making movie seats ( which I had no idea how to make) but as soon as the video started , I eventually began understanding what actually brad is trying to do. I just too a div, give it some height and width of around 10px and 12px respectively and then applied the border-radius property to make the both top rounded. border-top-left-radius:4px; border-top-right-radius:4px; obviously I used lot more css but I am just typing out what I saw new during the learning process,. here is a screenshot attached :  The CSS stuff I learnt was: pseudo selector not nth type I had heard about them but never used them until today. What are they exactly, Well here is what I understand about them:

Completed My First Mini Project !!!

 Hi friends I am really feeling great after completing my first mini project. what was it? It was a simple form validation project. And I got to learn many new methods while doing this project. Shared in the post later. and as I promised I will be sharing even the tiniest details I learnt while doing the project so here is this blog post that I have written to show what stuff ( concept, js methods etc) I learnt while doing the projects. (note: you may encounter some typos in this post as I am not using any tool like Grammarly) what I learnt trim() - removes whitespaces forEach()  what is forEach method forEach method contains a method as an argument . We basically give a function as an input and it calls the function for each array element. forEach(function()) {  your executable code } 2)!== operator 3) slice method ( explained in detail below) How to make the first character of  a string capitalised and concatenate the remaining string as it is. for this purpose I u...
 Today I will be starting with the udemy course of my favourites instructor brad traversy. I took his 20 vanilla js projects just to enhance my skills. I wanted to document this journey of 20 days so I will try to post every day as soon as I finish the project. things I will post: things I learnt while making the project things or topics that I struggled with How I was able to come up with the solution of a particular problem.