Javascript String br()
Home
Javascript
Javascript Basic
String Extension
Menu
Javascript
Javascript Basic
Javascript Basics
Array
Array Extension
Class
Data Types
Date
Date Extension
Function
Generator
Iterator
Json
Language
Math
Math Extension
Number Extension
Object
Object Extension
Operators
Promise
Regular Expressions
Set
Statements
String
String Extension
Javascript Browser
BOM
DOM
Storage
Javascript Usage
Algorithm
Data Structure
Interview Question
Description
Javascript String
br()
Copy
String
.
prototype
.br =
function
() {
return
this.replace(/\n/g,
'<br>'
) }
Previous
Next
Related
Javascript String blank(pattern)
Javascript String blue()
Javascript String boldify()
Javascript String br2nl()
Javascript String byteLength()