Introduction to JavaScript : Functions

Introduction to JavaScript : Functions

A JavaScript function is a block of code designed to perform a particular task. It is executed when something invokes it (calls it) It is defined with a function key world followed by a name followed by parentheses () Function myFunction (s1,s2) {return s1*s2 //the...
Introduction to JavaScript : Data Types

Introduction to JavaScript : Data Types

In this article we’ll cover all about variables and data types and why we need them! So what are variables ? Imagine that a variable is a box, and in that box we can put different types of things that are data types. So basically variables can hold many data types:...