JavaScript I am learning

by 
Jaswanth
on
November 20, 2021

I (tried) learnt JavaScript more times than I tried to make love.

Understanding Methods inside JavaScript

const methodInside = 
{
   key: 'value',
   key1: 'value1',
   addKeyAndKey1: function()
   {
     return this.key+this.key1;
   }
};

The object 'methodInside' has a function inside it, any function that is inside an object is called a 'Method'


Arrow Function

Arrow function is a compact way of writing Functions in JavaScript

const a = (arg1) => 
{
    do functionThings;
    return or dont return;
}

We have arguments to the left of the arrow, and to the right we have statements, or we can simply return stuff without the return keyword.

const a = (arg1) => arg1 + 10; 
const a = arg1 => arg1 + 10;

About the author:

Hi, I am Jaswanth. I wrote the blog you're reading, if you like this, you might like some of my other blogs too. If you're up for a discussion on this, let's do it. A bit about myself, I am WordPress webmaster and Digital marketer by Profession, I strive try to do things in a better and effective way. I keep learn things and believe we, as humans are 'Learners for Life'. I am an Hubspot certified Inbound professional and huge advocate for Inbound marketing.

About me 🙂

I am Jaswanth Chadalavada, I believe in building long lasting bonds and ever adapting Workflows, At the core of my heart I care about people and it reflects in the way I interact and the work I do.
I am Social  : 

jaswanthch.com

menucross-circle linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram