Posts

Showing posts from February, 2021

How to use Javascript's Map() method

Image
   Hi guys! I'm back with a tutorial about the javascript Map() method. To me, in the basic functionability, it's kinda similar to the Filter() method. It's used to reduce repetition in your code by making a new array by calling a function for every array element. I'll give you an example. Let's say here we have an array of 5 different popular Youtubers, and we want to return a new array with only the names of the youtubers. So, we do this:   We make a new array called test, and inside it we map the youtubers array and return each youtuber's name by a function called tubers. Then, we console.log the code and here is the outcome:  Now, we have a nice little array of each youtuber's names. you can also do this with other values from the main array. Let's say that we want to return the names of each youtubers and how many subscribers they have.      what I did above was the same thing I did before, but now I am returning a value of the youtuber's nam...

Kiki, my friend in middle school

Image
Have you ever imagined of helping another person and making a huge impact in their life? Well, the short story below this are those kind of stories. The narrator and the main character in this story is kept anonymous. Originally, this story was Made by someone in Indonesia, and I only edited it a bit and translated it to English. Enjoy reading! kiky, My Friend In Middle School When I was in middle school, I saw a child from my school walking back and forth carrying all his books. “Why would anyone bring all their books home even though tomorrow is the weekend off? He must be really stupid "I thought to myself. While thinking that, I saw a group of children running towards him. They ran towards him, knocked all the books from his hands and knocked them down. His glasses flew and landed about 3 meters from him. There was deep sadness in his eyes, and my heart told me to go over to him. I saw him near to tears when I handed her glasses. “Those people are rude. They have t...

Did Bill Gates Steal The Macintosh?

Image
    Howdy! We all know Microsoft Windows, the signature product of Microsoft, Bill Gate's company. The first version of Windows was launched on 1986, but did Bill and his team really made the OS themselves? Well, let's find out!     In the early 1980's, Bill Gates and Steve Jobs were still good friends and didn't compete with one another. Bill still had the access to Apple's projects because he was one of the engineers and an investor on that company. when the Macintosh project was first planned, it got Bill's attention. In an Apple event in 1983, Bill said: " to create a new standard, it takes something tha'ts not just a little bit different. It takes something that's really new, and really capture people's imaginations, and the Macintosh, from all the machines I've ever seen, is the only one that meets that standard. "  A year later, in 24th of January 1984, the Macintosh was launched. you're fired!     When Steve Jobs...

Is It Safe For An Atheist In Indonesia?

Image
     Recently, I saw a question from Quora that said "Is it safe for an atheist to go to indonesia?". even though there was already an answer to that question, I want to give you an answer to that based on my own experience.   I live in Indonesia for about 13 years now. Indonesia is a beautiful country with its nature and lasting culture. The majority of religion here is Islam, so is it safe for a non-islamic guy to go to Indonesia? well, Indonesia has a national emblem that says "Bhinneka Tunggal Ika" or, in english, means "Unity In Diversity". To the contrary, it means: "even if we are different in culture, race, skin or religion, we are still one human being". If an Indonesian asks you about your religion and you say that you dont have one, they'll only nod their heads and ask a different question. Else than that, Indonesians like foreign people so they'll act as friendly as they can.   So, it is perfectly safe to go to In...