1. Find the largest element in an array
var arr = [10, 20, 30, 40, 50];

2. Sum of all the elements…

The common misconception is that React is framework but it is not. React is a popular JS library to build UI.

Let’s deep into the dive with React.

  1. Create React App

To create react app
npx create-react-app react-app
command is required. …

1. JavaScript try/catch/finally Statement

While writing codes it is very common that error happens and to handle these errors JS have 4 statements. These are try, catch, throw and finally.


try {
Lines of code
catch(err) {
Lines of code to check errors
finally {
Lines of code which must be…
JavaScript String Methods
  1. charAt()
    Suppose, you want to return the character at a specified index in a string then you may use the charAt() method. Where 0 is the index of the first character, 1 is the index of the second character, and so on.




var sampleString = “New String”;


B.Sc. in Computer Science and Engineering. University of Barishal, Barishal.

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