DEV Community

Discussion on: Make your own API under 30 lines of code

Collapse
 
jujasen profile image
Julia Jakobsen

Hi! Maybe a stupid question, but where do i write the code from step 1? Do i need to create a file? What should the file-structure be? I don't understand :/

Collapse
 
shreyazz profile image
Shreyas Pahune • Edited

Hey Julia, first of all no quesitons are stupid xD! And you just have to create one file having a .js extension.
Create a file let's say index.js and then write your code in it.