Understanding JavaScript Functions

Frugence | 3 years ago

What is the function?

Function is the group of statements used to perform certain task. Functions are very useful when perform a repeated task.
For example, we want to output certain song lyrics.

// Declare functions
function verse1() {
  console.log('First verse goes here');

function verse2() {
  console.log('Second verse...

read more →

10 javascript string methods you should know

Frugence | 4 years ago

In this post I will summarize 10 javascript string methods you should at least known.

If interested read here 10 javascript array methods you should know.

String is anything inside single or double quotes.

Here are 10 javascript string methods you should know.


read more →

10 Javascript array methods you should know

Frugence | 4 years ago

In this post i will share 10 javascript array methods you should know.

If you know nothing about array, you can click here for array introduction.

Here are 10 javascript array methods you should at least know

1. forEach()
This method can help you to lo...

read more →

Introducing JavaScript objects

Frugence | 4 years ago

Object is the way of storing group of data in key-value pairs. Object is denoted by symbol { }.

Let say we have to list someone first name, last name and his/her nationality.

=>By using Array

    const person = ['Frugence', 'Fidel', 'Tanzanian'];
here it is difficult to understand which value is first and last name, perhaps ...

read more →

Understanding basics of array in javascript

Frugence | 4 years ago

In the post i will share some basics about Array.

Array is the way of storing group or list of data.

Let say, we want to store group of colors without using array.

    const color1 = 'purple';
    const color2 = 'black';
    const color3 = 'yellow';
    const color4 = 'aqua';
As we see, our codes are not DRY(Don't...

read more →

Naming CSS classes with BEM

Frugence | 4 years ago

BEM - Block Element Modifier is the way of naming CSS classes so that they can be more meaningful and reusable.

BEM help to avoid name collisions and reduce the pain of modifying CSS classes when changes are need to be made. As you known when working with large project, modifying a single CSS class may lead to dozens of affected pages. BEM help to avoid all those problems. <...

read more →

Javascript variables - var, let and const.

Frugence | 5 years ago

Javascript variables are containers that holding pieces of data.

There are three keywords used when declaring variable in Javascript, namely var, let and const. They follow this pattern or syntax var variableName = variableValue;

Javascript variables are dynamic typing mean that they can change from one data type t...

read more →

What is the Web Stack!!!???

Frugence | 5 years ago

Someone can ask you, "What is your stack?"/ "Which stack used in your project?"/ Which stack does your company use?
In this post i share what I known about Web Stack.

Web stack is the collection of the technologies/tools used for web development.

There are three types of Web Stack, namely FrontEnd, BackEnd and Full Stack.

1. FrontEnd Stack- This stack...

read more →