Skip to content

Commit 8e2ad04

Browse files
Update part4a.md
sorry this was me that added this content and i never realised that the exercises and content were in seperate divs, i had added it in between the divs and it didnt display properly on the actual website. it was taking up full width of screen beneath the sidebar. i have now moved into the content div and i am guessing that will fix it.
1 parent 134e929 commit 8e2ad04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/4/en/part4a.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,6 @@ app.use('/api/notes', notesRouter)
391391
392392
Now the exported "thing" (in this case a router object) is assigned to a variable and used as such.
393393
394-
</div>
395-
396394
#### Finding the usages of your exports with VScode
397395
398396
VScode has a handy feature that allows you to see where your modules have been exported. This can be very helpfull for refactoring, say for example you decide to spilt a function in to 2 seperate functions, your code could break if you don't modify all the usages. This is difficult if you dont know where they are. However you need to define your exports in a particular way for this to work.
@@ -401,6 +399,10 @@ If you right click on a variable, in the location it is exported from and select
401399
402400
The nature of VS code bleeding into how you write your code is probably not ideal, so you need to decide yourself if the trade off is worthwhile.
403401
402+
</div>
403+
404+
405+
404406
<div class="tasks">
405407
406408
### Exercises 4.1.-4.2.

0 commit comments

Comments
 (0)