Find Jobs
Hire Freelancers

extend a javascript class

$2 USD / hour

Closed
Posted about 5 years ago

$2 USD / hour

I want to extend the 'Promise' class to follow the following structure: export default class extends Promise{ constructor(executor){ run(()=>{ //function run(fn){return fn();} super(); //executing the super constructor must be inside run() //don't create a new instance, i.e this.promise=new Promise(..) // method implementation and other methods (except wait()) is not required, only the structure withoute TypeScript errors }); return this; } then(...args){ run(()=>{ //some adjustments for args return [login to view URL](...args) }); } wait(seconds){ //wait some time return this } } //just executes fn() and returns its value function run(fn){return fn();}
Project ID: 19308048

About the project

4 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $2 USD/hour for this job
User Avatar
Have a good experience in scripting Language. Currently working on Angular 6 base project in company from last 1.5+ Years Relevant Skills and Experience Have 4 years of Experience in Full Stack web development. Currently working on Angular 6 project and have 1.5+ Year of experienc. Have experience in Java Script, Type Script, Adobe Flex,Struts
$3 USD in 20 days
0.0 (0 reviews)
0.0
0.0
User Avatar
low salary. high quality profissionall self-esteem low salary. high quality profissionall self-esteem
$2 USD in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello! I'm a very experienced javascript and typescript programmer, with thousands of lines written in both languages. I believe to be totally capable for the task. I am, however, somewhat confused on what you're asking. If more details could be delivered, I'd be glad to do this for you. The task seems very simple, and I'm sure it wouldn't take me long to finish. Sincerely, Jean sidharta
$2 USD in 40 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Florida, United States
5.0
2
Payment method verified
Member since Mar 16, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.