file for chapter 2 on GitHub

This issue has been tracked since 2022-10-29.

hi I am not getting the proper file for chapter 2
https://github.com/jonasschmedtmann/complete-javascript-course/tree/master/02-Fundamentals-Part-2
it is showing in safari

trish1236 wrote this answer on 2022-11-10

any one please answer this question.

trish1236 wrote this answer on 2022-11-10

hello anyone?

trish1236 wrote this answer on 2022-11-10

the file is showing safari

trish1236 wrote this answer on 2022-11-10

complete-javascript-course/02-Fundamentals-Part-2/ file is not working

akozdev wrote this answer on 2022-11-10

Hi Trish
Can you elaborate on this a little more? What doesn't work exactly?

trish1236 wrote this answer on 2022-11-10

I am trying to do the The Complete JavaScript Course 2022: From Zero to Expert! lesson 31 using strict mode but I am stuck with this video because the file does not work. I just shows up in safari and not using the starter file and strict file that this instructor has in the video.

trish1236 wrote this answer on 2022-11-10

hello are you still there?

akozdev wrote this answer on 2022-11-10

Ok, first please open the 02-Fundamentals-Part-2/starter directory in VS Code. To do so:
open VS Code > File > Open Folder... > choose the 02-Fundamentals-Part-2/starter directory
vscode_open_folder
Next, go to the 02-Fundamentals-Part-2/starter directory in your files, and open the index.html file in the browser. To do so:
control-click (or right-click if you're on Windows) the index.html file > Open With > Google Chrome (or the browser of your choice)

trish1236 wrote this answer on 2022-11-10
trish1236 wrote this answer on 2022-11-10

it shows grey

akozdev wrote this answer on 2022-11-10

Can you post a screenshot of how it looks for you?

trish1236 wrote this answer on 2022-11-10

it does not allow me to do any screenshots for chapter 2 for this course. it only allows files for chapter 1.

ascendho wrote this answer on 2022-11-10

It seems like you need to learn some basic computer techniques...

trish1236 wrote this answer on 2022-11-10

I tried to drop the files here but it does not allow safari links

trish1236 wrote this answer on 2022-11-10

how did you get your files to work on visual studio code with chapter 2 for zero to mastery 2022 course?

ascendho wrote this answer on 2022-11-10

I use WebStorm instead of VS code... But seriously I really can't understand your question without any screenshot or vedio to show your problem...

akozdev wrote this answer on 2022-11-10

Did you extract files from the zip archive before opening it in VS Code?

trish1236 wrote this answer on 2022-11-10

I tried that but it shows this on visual studio code

<title>JavaScript Fundamentals – Part 2</title> <style> body { height: 100vh; display: flex; align-items: center; background: linear-gradient(to top left, #28b487, #7dd56f); } h1 { font-family: sans-serif; font-size: 50px; line-height: 1.3; width: 100%; padding: 30px; text-align: center; color: white; } </style>

JavaScript Fundamentals – Part 2

<script src="script.js"></script> and not the script file
akozdev wrote this answer on 2022-11-10

That's good. Now you can create a script.js file in the same directory as the index.html file, and then use this <script src="script.js"></script> line to link both files. Then, you can write your JS code in the script.js file.

trish1236 wrote this answer on 2022-11-10

what are the steps for that?

akozdev wrote this answer on 2022-11-10
  1. Open the 02-Fundamentals-Part-2/starter project in VS Code as I wrote here.
  2. Then, open the script.js file in VS Code (from the VS Code sidebar), and start writing code. You can test it with console.log('Hello');. Remember to save the file.
  3. Check if there is an output in the browser console (open index.html file in the browser as describer here, and then open the browser console with Command + Option + J shortcut (Mac) or Control + Shift + J (Windows/Linux).

I see that the starter already has the script.js file linked with the index.html file, so you don't need to create them.

trish1236 wrote this answer on 2022-11-10

I don't see the script.js on my visual studio code on the sidebar?

trish1236 wrote this answer on 2022-11-10

hello still there?

trish1236 wrote this answer on 2022-11-10

could not find the script.js file for chapter 2 in zero to mastery javascript on visual studio code. can you please tell me the steps again. I really want tp complete this course soon. Please respond fast.

trish1236 wrote this answer on 2022-11-10

when I open in default browser it shows black screen

akozdev wrote this answer on 2022-11-10

Ok, please open the 02-Fundamentals-Part-2/starter directory in your file explorer, and let me know what files you can see there.

Can you see the index.html and script.js files there?

trish1236 wrote this answer on 2022-11-10

I tried but it shows a empty tab

trish1236 wrote this answer on 2022-11-10

anyone there?

More Details About Repo
Owner Name jonasschmedtmann
Repo Name complete-javascript-course
Full Name jonasschmedtmann/complete-javascript-course
Language JavaScript
Created Date 2018-06-14
Updated Date 2023-03-29
Star Count 12137
Watcher Count 850
Fork Count 14403
Issue Count 153

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date