What is JavaScript?

JavaScript is one of the most powerful and important programming languages ​​today, due to three clear approaches: it is useful, practical, and it is available in any web browser.

JavaScript is created by Brendan Eich and saw the light in 1995 with the name of LiveScript, which was later named JavaScript, it was born as a simple language destined to add some interactive characteristics to web pages. However, nowadays, it has grown rapidly and is the programming language that is used in almost every website in the world.

The power of JavaScript is available mainly on the frontend side, adding more interactivity to the web, you can also use the libraries and frameworks such as jquery, angular, backbone, react and others, written on JavaScript, and that help you create a better experience user on our websites. In the same way, JavaScript can be used on web servers. Node.JS is your best option to use this language on the server-side.

  1. Let’s now know the JavaScript features that you make of this language, one of the most popular today.
  2. It is light.
  3. Multiplatform, since it can be used on Windows, Linux or Mac or in the browser of your choice.
  4. It is Imperative and structured; by means of a set of instructions, it tells the computer what task it must perform.
  5. Prototyping, because it uses prototypes instead of classes for the use of inheritance.
  6. Object and event-oriented.
  7. It is Interpreted, it is not compiled to run.

These are the characteristics that make javascript a language that allows you to develop giant and powerful applications, such as: google doc, facebook, twitter, and even capable of running on the server as a very fast webserver, thanks to nodejs.

Variables:

They are containers in which the values ​​are stored. It is declared with the expression ‘var.’ Variables are assigned values ​​and can be of various types:

  • String: or text strings
  • Number: or numbers
  • Boolean: have values ​​of true or false
  • Array: stores multiple values ​​in a single reference
  • Object: a generic variable type that supports almost any value

Operators:

Symbols that act on 2 values ​​or variables to produce different results. Some of the simplest operators are:

  • Sum or concatenation: add or join different strings +
  • Subtraction, multiplication or division: add, subtract or multiply – * /
  • Assignment operator: assign a value to a variable 0 =
  • Identity / Equality: checks if two values ​​are equal to each other and returns a Boolean value (true / false) ===
  • Denial (not equal)

Conditionals:

It is normally represented by the if… else structure and allows you to check whether an expression returns ‘true’ or not and, depending on the response, it throws one result or another. In these types of expressions, it is the criterion, which is always associated with 2 blocks.

If the if criterion returns the answer ‘true’ in response, the first block is thrown, if the answer is ‘false,’ the second block that goes after ‘else’ is thrown.

Read More →

Pros And Cons Of Web Applications

Web applications are tools that users can use by accessing a web server (thanks to the Internet or an intranet) through a browser, which will execute the task.

Web applications provide a very important added value to our ‘site’ and can help position us as a benchmark in the sector if they become viral.

Pros of web applications

  • They are a quick and cheap solution since the investment for their development is less and less time is needed.
  • There is no need to create different versions for different families of devices: a web application will be accessible to all users, whether they use iOS, Android, a tablet, or a PC.
  • The web environment continues to be better when it comes to attracting users since they are usually reluctant at first to occupy the memory of their devices by downloading a tool that they do not know if it will be useful to them. However, if they only have to follow a URL link, they will be more willing to give it a try.
  • It uses languages ​​well known to programmers, such as HTML and CSS.
  • There is no need for regular updates or user permission to implement changes. When any modification is made, Internet users will only have to open the website again to find a new version, dispensing with notifications and warnings.
  • Although they are slower, web applications are less likely to hang and suffer ‘bugs’ because they avoid technical problems that arise from incompatibilities or software conflicts with other applications and the security protocols of the devices.

Cons of web applications

  • As it is not a native app, they are not in the official ‘market’ of the predominant operating systems in mobile phones, such as the Apple Store or the Play Store. In this way, many users who look for an application in these stores will not find it.
  • Native apps must be downloaded, so once this step has been taken, they are more likely to be used again, fostering loyalty. However, the web world is more volatile, and the user may turn to any other application they come across on the internet the next time they need it.
  • Typically, the user needs greater connectivity in web applications than in mobile applications to use the tool.
  • Performance is limited by the response of the browser from which the application is running.
  • The user experience is worse, as it adapts less to the device used than a native app.
  • Offline functionalities are ruled out in web applications.

As web applications are hosted on a server, any device can access them, so they must adapt to all screen sizes, to different mobile devices, and to the different browsers that the user may use.

Due to their intrinsic characteristics, web applications have a series of advantages and disadvantages compared to mobile applications, which need to be downloaded to a device.

Read More →