# Using the test server in JavaScript

Open a folder where the server is located. There you will see the `public` folder. This folder will be the root folder of your site. This means that any file placed in this folder will be available from the browser via a direct link.

Let's look at an example. Let's create the layout of a HTML page in the `/public/page.html` file:

`<!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <title>page</title> </head> <body> page.html works! </body> </html>`

To access this page in a browser, you will need to go to `http://localhost:8080/page.html` - that is, without specifying the `public` folder.

Create the `/public/dir/test.html` page. Access it via a browser.

Create the `/public/style.css` page. Access it via a browser.

Create the `/public/script.js` page. Access it via a browser.

←→
↑
en ru