---
description: https://www.tutorialspoint.com/requirejs/requirejs_environment_setup.htm
---

# RequireJS - Environment Setup (ok)

![](https://2726517656-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1E4Gk2ppVKb4olmnun%2F-MT9AcGyuR8ODXwQcXha%2F-MT9CbAznxJSsCEg_WTd%2FScreenshot_2.jpg?alt=media\&token=741ea29e-dbc0-417a-9ca4-a3ba8f47e2db)

C:\xampp\htdocs\php\index.html

```
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script data-main = "libs/main" src = "libs/require.js"></script>
</head>
<body>
	<h1> RequireJS Sample Page </h1>
  <div id="content" class="navigation">
  	Lorem ipsum dolor sit amet consectetur adipisicing elit. Molestias, ut.
  </div>
</body>
</html>
```

C:\xampp\htdocs\php\libs\main.js

```
console.log('await');
```
