Skip to main content

JavaScript Functions Frontend Development Course - S4 V10



In this tutorial, you will learn about JavaScript functions, how they are created and used in an object. You will also learn about arrow functions and their usage in a JavaScript project.

FILES

Basic Functions
https://stackblitz.com/edit/js-cba8jz

Arrow Functions
https://stackblitz.com/edit/js-nv9vye

As the word Function itself means that some action is performed so is the real purpose of this JavaScript aspect is. Functions are meant to perform following actions:


1 - value display -> DOM (display website)
2 - value popup -> alert()
3 - value change
4 - value assign
5 - object create
6 - variable create
7 - new function
8 - simple and complex calculations

In this tutorial, we will not cover all the purposes but we will do see how the value is displayed in the DOM, how an external value is changed and also see how parameters are used to make interactive applications in JavaScript. The code is super easy, but you need to pay great attention at what is being said and presented.

This video lesson presents three ways of creating a function, by using var keyword, and then by using function keyword and then by arrow function in whic a fat arrow => is used.

All of the three are valid methods and almost everytime achieves the same results except in certain cases, which I will cover in an advanced lecture. Another form of function is a method, which is part of an object. Methods are defined in the same way as defining simple functions. Methods mean what actions can an object perform. The actions of an object are performed by making functions in them, which are called methods.

Company:
http://www.webdevelopmentlabs.com
x

Comments

Popular posts from this blog

Design Organized Website Structures

When developing a website, you must proactively decide its structure before starting the coding. But what does the Web Structure mean at the very first place? Website Structure can be defined as follows: When you talk about the structure of a website, you are talking about its components , their working , their location , their inter-dependency , and their interaction with the user. The design of the Website Structure does not include code. Generally, the design includes, wire frames, sketches, mock ups, lists, flow charts and other visual aids. What is a component? Well, it can be defined as follows: Components are the useful or functional parts of a website Every component has a particular purpose and function. For example, navigation bar of a website has a purpose of providing navigation links to the user. But some, components are versatile and have multiple purposes. For example, a header of website can contain a navigation bar, a search bar, a login form

How Bootstrap Works Easy Introduction Frontend Development

In this tutorial, we will understand the basic concept of bootstrap, how to use it with HTML to make websites. Company: http://www.webdevelopmentlabs.com

Bootstrap Container and Container fluid Easy Frontend Development Course

In this tutorial, we will learn how to use the bootstrap container and container-fluid classes to make website responsive. Company www.webdevelopmentlabs.com Give your feedback here: www.webdevelopmentlabs.com/flow/survey