What are arrow functions in JavaScript?

An arrow function expression (previously, and now incorrectly known as fat arrow function) has a shorter syntax compared to function expressions. Arrow functions are always anonymous.

Arrow Function

  • Do not call before definition
  • An arrow function cannot contain a line break between its parameters and its arrow.

Arrow Function With Parameter

•With one Parameter
Syntax: (para) => {statement};
Syntax: para => {statement};
•More than one Parameter
Syntax: (para1, para2, paraN) => {statement};
•No Parameter
Syntax: ( ) => {statement};

Arrow Function with Parameter

•Default Parameter
Syntax: (para1, para2 = value) => {statement};
•Rest Parameter
Syntax: (para1, …args) => {statement};

Tagged : / / /

Website Typography

website-typography

Below is a list with arrows. To use this style create a list in the following format:

    • ….
    • ….

  • Quisque ultrices etiam, class nec velit vestibulum sit congue pulvinar, mattis penatibus proin odio placerat ante.

To use this style create a list in the following format:

    • ….
    • ….

  • Quisque ultrices etiam, class nec velit vestibulum sit congue pulvinar, mattis penatibus proin odio placerat ante.

Below is a list with circle. To use this style create a list in the following format:

    • ….
    • ….

  • Quisque ultrices etiam, class nec velit vestibulum sit congue pulvinar, mattis penatibus proin odio placerat ante.

 

Alert box

This is a sample pin note. Use Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer urna. Aenean tristique. Fusce a neque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Info box

This is a sample pin note. Use Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer urna. Aenean tristique. Fusce a neque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Download box

This is a sample pin note. Use Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer urna. Aenean tristique. Fusce a neque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Code
#subheader h1 {
float: left;
margin-top: 28px;
background: url(../images/logo.gif) no-repeat;
width: 335px;
height: 58px;
text-indent: -9999px;
}

 

Tagged : / / / / / / / / / / / / /