First language you need to learn (JavaScript vs Python)
There are many blogs, YouTube videos and many other resources out their to guide people into programming. Most of them aren't that great, they mostly guide you through the fixed path which is not that efficient and sometimes most the things you learn...
harikeeshan.hashnode.dev3 min read
Hey Harikeeshan,
I was thinking, how about we could create together (getting help of this amazing community) a list of simple code samples. For example:
Generate a list of 100 random integer number (between 1 and 1000) and then get the last element of this list?
Python π
import random # Create a list of 100 integers up_to = 1000 my_list = [random.randint(item, up_to) for item in range(100)] # Get the last element of the lhis list my_list[-1]Javascript
# Creates a list of 100 integers const numbersUpTo = 1000; let myList = new Array(100); myList = myList.fill(0).map(() => Math.floor(Math.random() * numbersUpTo)); # Get the last element of the lhis list myList[myList.length -1]In this way, people could get a comparative view and each one could decide. I do you thing?
Cheers