How to rename pre-built prototypes in JavaScript

Javascript renaming examples. Javascript renaming is supported in version 3 or newer.

How to rename pre-built prototypes in JavaScript

Postby tdh10 » Mon May 13, 2019 8:25 am

I asked one question today to surprise me. I know string.repeat(number) Repeat number sequence said in JavaScript
eg: "Father".repeat(3)
printed

FatherFatherFather
tdh10
 
Posts: 1
Joined: Mon May 13, 2019 8:21 am

Re: How to rename pre-built prototypes in JavaScript

Postby Admin » Tue May 14, 2019 2:15 am

Yes,

Code: Select all
newName = "Father".repeat(3)


sets the file name to 'FatherFatherFather' in Javascript
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm


Return to Javascript Renaming


cron