Deep Tech Point
first stop in your tech adventure
March 10, 2021 | Javascript

In this article, you are going to learn more about JavaScript functions and methods. In short – a function can live on its own, it does not need an object, but a method is a function connected with an object property, but let’s take a look and see what are the similarities and differences between functions vs. methods in JavaScript.

March 4, 2021 | Javascript

In this article, you’re going to learn the difference between JSON and JavaScript object.

March 1, 2021 | Javascript

Should I use single (‘) or double (“) quotes when working in JavaScript? That’s the question now.

'abc' === "abc" // true

February 26, 2021 | Javascript

In this article, you’re going to learn when to use const in JavaScript, what is a constant (const), and how it’s different from an “ordinary” variable (let).

February 23, 2021 | Javascript

Semicolons are optional in JavaScript, but sometimes they’re not. Wait, what? Are they optional or not?

February 22, 2021 | Javascript

In this article, we are going to present how to clone an object in Javascript. There are actually at least four ways to copy an object and they differ from each other in a few ways. You can use:

  • the spread syntax,
  • the object rest syntax,
  • object.assign() method,
  • and the JSON.stringify() and JSON.parse() methods.

So, take a look at each and see when it’s best to use a specific method.

February 21, 2021 | Javascript

In this article, we are going to investigate what are the differences (and similarities) between JavaScript arrays and objects, and how do you know when to use objects vs arrays?

February 19, 2021 | Javascript

Maybe you have an issue with a server, which is sometimes returning either a JSON string with some useful data, and at other times server returns an error message string, which is produced by the PHP function mysql_error(). A simple solution to this problem would be to test whether this data is a JSON string or an error message.

A straightforward answer to a question on how to test if a string is JSON or not would be to use JSON.parse function isJson(str), like so:

function isJson(str) {
    try {
    } catch (e) {
        return false;
    return true;

February 17, 2021 | Javascript

Nullish coalescing operator is a logical javascript operator that was introduced in JavaScript with the launch of ES2020 aka ES11and is symbolized with double question marks (??).

The nullish coalescing operator is a logical operator that accepts two operands – one on its left-hand side and one on its right-hand side and the syntax looks like this:

LeftHandSideOperand ?? RightHandSideOperand

Let’s see where we can use it.

February 15, 2021 | Javascript

In Javascript both var and let are used to declare a variable. However, there are a few differences between javascript var vs let, so let’s take a look at them.