Ask coding questions

← Back to all posts
Convert a JS project to JS + HTML + CSS
nagpai (0)

If i begin with writing a JS project of say - a calculator and I later decide to add a HTML + CSS front end to it, how can i change the type of the project? I wish to do this to get a preview of the HTML that would have the visual interface of the calculator?

Answered by ash15khng (473) [earned 5 cycles]
View Answer
Commentshotnewtop
ash15khng (473)

You would have to copy paste all your code. There's no way to change the language of a repl sadly.

nagpai (0)

@ash15khng Ah thanks for confirming that. I hope this feature is incorporated someday :). Not a big deal to CnP though.

ash15khng (473)

@nagpai I agree it should be a feature as sometimes you work with multiple files. Also, would you mind marking my comment as the answer? Thanks!

nagpai (0)

@ash15khng thanks, Just marked it! This was my first question on the forum here :)

Geocube101 (379)

The HTML CSS JS repl has all three files to code html, css and javascript