Javascript - String small() Method

The small() method is used to display a string in a small font.

Description

The small() method is used to display a string in a small font.

This method returns the string embedded in the <small> tag, like this:

<small>string</small>

Syntax

string.small()

Parameters

None

Return

A string embedded in the <small> tag

Example

Display a string in a small font:

Demo

//display a string in a small font.
var str = "Hello World!";
var result = str.small();
console.log(result);//w w  w .  j a  v  a  2s  . co  m

Result