I’ve realized I’ve learned a lot six weeks into Flatiron’s software engineering program. So far we’ve learned Ruby, which I think is an easy programming language for beginners, like me, to learn. What’s interesting about it is that about a decade after it was created, David Heinemeier Hansson wanted to enhance Ruby through a framework and make it run more efficiently. It made Ruby run faster, and it doesn’t involve as much coding as other languages. One of my favorite topics under Ruby on Rails was passwords and authentication. It was interesting to learn the “behind-the-scenes” of basically every website people visit now — as almost every site requires a username and password nowadays.

My life story

But, the beautiful thing about coding and its different languages is that there are many ways to get the same result. Another scripting language that we will soon get into in the next portion of lectures is Javascript, which can also be referred to as JS. I’m excited to learn Javascript more in depth, as the language displays timely content updates, interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, etc. It allows us to create dynamically updating content, control multimedia, and even animate images.

JavaScript syntax:

I’ve done a bit of research ahead of the game in order to know what to expect while learning Javascript. Here are a few things I’m excited to jump into as I learn more about it:

JavaScript operators are symbols that are used to assign values, compare values, and perform arithmetic operation. Some of the operators such are, Arithmetic Operators, comparison operators, logical operators, assignment operators, conditional operators, string operators, type operators, and Bitwise operators.

JavaScript function are blocks of code that programmers write to perform a specific task. Some are built into the language like a template, while other blocks of codes can be written to carry out the logic of application that the programmer is trying to built. Once the programmer defines it, they can call the function — invoke it and optionally pass in some variables or data for it to work on — elsewhere in your program.

JavaScript substring(): This method is used to extract a portion of a string form a very long string.

JavaScript array: This is a special kind of variable that can hold a whole list of values at once. JavaScript has a number of tools for finding and manipulating the specific values you want within an array. For example: sometimes in the application the programmers might be dealing with a list of objects such as a list of products in a shopping cart or the list of names the teacher has selected. In a situation like this, programmers use an array to store that list.

The next two methods are used to loop through each element in our array :

JavaScript forEach(): This method will call a specific function one time for each element in the array

JavaScript map(): new This is a really powerful method that programmers use. with this method, we can use map to create a new array containing the results of calling a function on every value within another array. For instance, you could multiply every value in another array by 10.

Knowing Javascript is in very high demand in the tech field and most companies require some familiarity with it. Hiring mangers expect candidates to know how to write it and most of them ask candidates to write javascript codes that work in order to be hired for that company.