JavaScript array is an object that represents a collection of similar types of elements.

There are 3 ways to construct an array in JavaScript

  1. By array literal

There are some methods in arrays to perform some important operations such as adding new elements to an array, Finding elements in an array, removing elements from arrays, splitting arrays, combining arrays, etc.

We can use push, unshift, splice methods for adding elements to arrays.

Also we can use indexOf,lastIndexOf methods to finding elements in arrays.

Object-oriented programming (OOP) refers to a type of computer programming in which define the data type of a data structure and also the types of operations that can be applied to the data structure.
In this way, the data structure becomes an object that includes both data and functions. In addition, programmers can create relationships between one object and another. For example, objects can inherit characteristics from other objects.

The Basic OOP Concepts

If you are new to object-oriented programming languages, you will need to know a few basics before you can get started with code. …

After learning HTML & CSS, I started learning javascript. Javascript is one of the most popular and widely used programming in the world. Big companies like Walmart, Netflix and Paypal build entire applications around Javascript . Javascript was originally designed to run only in browsers like Chrome, Firefox. So every browser has what we call a Javascript engine that can execute Javascript code.

I learned variables in javascript. The ‘let’ keyword is used to declare every variable in javascript.

After that, I learned how to declare constants. That’s very easy because the difference between declaring a variable and declaring a…

I built a game called Simple Dot Com Game using java. First of all, I declared new integer two variables called ‘locationCells’ and ‘numOfHits’. After that I declared two methods called ‘String checkYourself(String guess)’ and ‘void setLocationCells(int[] loc)’ .After the declaring,I Wrote test code for the SimpleDotCom class Based on prepcode.Everything in prepcode happens in the main method.After implementing the test code ,I had a problem. After that ,I made a new smaller array to solve this problem.Finnaly, I built the game.

During this two months , I learned basics of java. That’s so much fun. Also I learned about several types of HTML tags. Also I read a book called ry’s git tutorial. I learned a lot from that book. It is a very interesting book. After that I started contributing via GitHub. That was a new experience for me. I made my first contribution to the Sefglobal website and also I created a twitter account. That’s it !!!

isuru sellahewa

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store