英[sʌb] 美[sʌb]
n.Submarine;substitute,substitute,substitute;subway;reviewer
vi.Be a substitute, be a substitute ;Be a stand-in, proofread (manuscript)
Third person singular: subs Plural: subs Present participle: subbing Past tense: subbed Past participle: subbed
javascript sub() method syntax
Function: is used to display strings as subscripts.
Syntax: stringObject.sub()
javascript sub() method example
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script type="text/javascript"> var str="Hello world!" document.write(str.sub()) </script> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance