Posts

JavaScript Array map() Method

Image
  .map() returns a new array of elements where you have applied some function on the element so that it changes the original element. Explanation: You already have an array with values. let details = [ { id : "1" , lastName : "Node js" } , { id : "2" , lastName : "Angular js" } , { id : "3 " , lastName : "React js" } ] ; And you want only name from the array: [Node js, Angular js, React js] So, here we use the map() function of JavaScript:  The   Array.map()  method allows you to iterate over an array and modify its elements using a callback function.  How to use map() var newArray = details.map(function (data) {   return data.name }); Here, newArray is a new Array that stores the value which has been map. Here data(Can name as per you want)  variable is used to store all details array values. Then, data.name will return all the values having the name in the data(details) array. Can also use ES6 arrow fun

Mental health - Depression

Image
What is depression? Depression is classified as a mood disorder. It may be described as feelings of sadness, loss, or anger that interfere with a person’s everyday activities. Depression is a common mental disorder. Globally, more than 264 million people of all ages suffer from depression. In the 15-30 age group suicide is the 2nd leading cause of death. Every year more than 800,000 people commit suicide. To heal a would we need to accept there is one. If we see a wound on the leg we apply medicine to heal it. But in Mental depression, we don't see that we are injured. Myth about  Depression 1) There is a difference between sadness and depression. Sadness: It's just adjustment disorder, something happens from which you are unhappy. Depression: It doesn't mean unhappiness, many healthy, wealthy people suffer this. This is a feeling of loss of all energy, mood, and happiness and this feeling lasts for a long time. 2) Depression is in your head. Many people think, depression i

Loose or maintain your body weight without workout or diet

Image
Don't want to workout or diet but still want to loose or maintain your weight? You can  adopt   Intermittent  fas ting (IF ) . Intermittent fas ting (IF ) is currently one of the world’s most popular health and fitness trends. People are using it to lose weight, improve their health and simplify their lifestyles. It have powerful effects on body and brain.

Slumdog Millionaire - Kalpana Saroj

Image
This is story of Kalpana Saroj .   She is described as the ' original slumdog millionaire ', she was born in poverty and faced inhuman abuse, she overcame impossible odds to become one of the most successful entrepreneurs in the country. Today she is at the height of a $112 million empire that is growing rapidly. How she did that is as heart breaking as it is faith affirming.  The lesson we need to understand from her journey: “ Degrees and MBAs are not what make successful. Courage, Perseverance and superhuman ability to have faith in yourself does.  ” She was born in Vidarbha (Maharashtra) at 1961. She belongs to Dalit family. Her father was a constable and they used to live in the police quarters. She had three sisters and two brothers. She lives with her parents, siblings, uncle, aunt and grandfather. Her father income was just Rs 300 per month. She was studying in government school. She was bright student. In the quarter where they stayed, she used to play with ot

Two Idiots

Image
Prabhkiran Singh  was born and brought up in Ludhiana. His father was businessman and mother is housewife.  After Class 10, he went to Kota for IIT coaching. He had no idea what is IIT, but went just because his friends were going. He later came to know importance of IIT, so he became serious and studied hard for it. He got admission in IIT Mumbai, he opted for civil engineering- not the most preferred branch but he was excited because his dream was to go to Mumbai.  1st and 2nd year completed fairly routine. Then 3rd year came the time for internship. At that time students start thinking   "what should i do in life?" While most of batch-mates were choosing technical jobs but he was on a completely different trip. He applied to first company which came on campus “ Deutsche bank ” but did not get shortlisted. He decided from that day to stop applying to jobs and start something of his own.  But he was confused where does one start? One day he came across book called “st

Entrepreneur

Image
According to Google : An entrepreneur  means a person who sets up a business , at their own financial risks . According to me : An entrepreneur  is a way to gain knowledge ,  experience ,  to develop skills,s and to develop of mind . Jobs :  Working 9:00-7:00(approx) on the work given in a particular field by the boss. It simply means to focus on only one field. There is nothing to learn u are just applying what u already learned. Entrepreneur :  Work as much as u like, working on all fields like planning, developing, strategies, communication skills, plotting, success, failure, marketing, etc. A person always gets excited to plan for his/her own company, plan as they like as they want and most importantly they are interested in it. Learning :  Learn to present, learn to communicate, learn to enjoy success, learn to accept failure, learn to work on failure, and marketing skills. Yes, for being an Entrepreneur you should have enough money to start a business and yes always be ready for