I am completely stuck

Hello I van, thank you for your reply.

I will give it a try later.

I am trying to put folder on desktop then image in folder, but it’s not working.

I will figure it out soon.

Just need to cool down my brain which, you will have noticed has been doing the course nearly every day!

D

Hello Ivan,

Here is my code.

I am a complete newbie, so please understand.

I’m don’t know where to start a folder - desktop or documents?

My machine won’t let me slide the picture into where it is saved.

I just don’t know how to get the code and the picture in the same place.

I know that sounds silly but I am going for a walk and a think.

D

<head>
	<title>This is a great website</title>
</head>
<body>
	<h1>This is the Title</h1>
	<h2>This is the smaller title.</h2>
	<h3>This is the even smaller title.</h3>
	<h4>This is the Title</h4>
	<h5>This is the smaller title.</h5>
	<h6>This is the even smaller title.</h6>
	<P>Welcome to Ivan on Tech coding course.</P>

	<h2>Our List!</h2>

	<ul>
		<li>Step one</li>
		<li>Step two</li>
		<li>Step three</li>
	</ul>
	<img src="egg.png"/>
</body>

Hi, I have gone through the Harvard lecture one piece at a time.
I am still stuck with how to get the image jpeg copied into the Folder that the HTML code is saved in.
I have now got the HTML folder and the Jpeg adjacent to one another on the desktop, but cant drag the image file over and into the HTML file - the machine wont let me do it.
Have also tried opening the HTML file in the desktop list and dragging image file from desktop, but it gives me a red circle with a red diagonal bar across, indicating no entry!
Anyone got any suggestions.
D :slight_smile:

Hi @doodesville
I am not really sure to understand where your problem is but i will try to answer you in detail:

You have one folder located in your desktop called:

download MyWebsite

Inside you have two files:

chrome index.html (just a text file with the code you wrote in your post)
image egg.png

Now go to your brower and type
file://

They click on your user
Desktop -> MyWebsite -> index.html

Or
Right click on index.html and click on “open with” and choose (chrome or firefox or edge)

You should see your page and the picture at then end.
You have to drag and drop the image inside the folder, no inside the file.
You are talking about a jpeg but your image ends with .png are you sure your image have the same name and extension than your file
Are you using windows or linux ?

Hi, it’s me again!
I was doing so well, then I came up against this block which is getting the image into the html page.
I have tried so many times now, I think I am going a little bit crazy!
All my coding is right, the image is saved as a .png - I have even managed to get it all into a folder on the desktop, but when I show it in the browser I get the alt text, but the image doesn’t come up - instead I get an icon for the image that looks like a piece of paper.
What am I not getting here!!! I am going a bit spare!
So I’m gonna leave it for a bit and get on with other things on the course and come back to it later.
I was feeling so smart up till now! DOH!
D :slight_smile: :crazy_face:

hey @doodesville

Good to know you made some progress.
Look at this link it explains many issues related to broken images i am sure you will find out by yourself :slight_smile:
https://blog.teamtreehouse.com/how-to-fix-a-broken-image
Good luck

Hi everyone. I want to ask for your sugestions what should I do. I started to learn programming absolutely from scratch. I felt quite alright and it looked pretty understandable everything what Ivan was explaining until I reached first excercises which I need to do on my own (triangle, fizzBuzz and chess board) and then I had no clue to be honest how to solve them. So what is your opinion what should I do? Try to repeat lessons of JavaScript or carry on and everything will get in to its places latter?

hello @Saima911 , programming is kinda hard once you start to build something with only your brain, if something is kinda hard for you to do it, i suggest research some examples, dont copy/paste them, TRY by your self to understand the logic of how that code is working, even if you cant build it by your own right now, doesnt mean you can in future IF you spend enough time trying to understand why something is coded in a particular way.
Hope this work for you.

1 Like

Hey everyone, I started out all right - ploughing through the videos - now I am into videos 18 through to 21 on the learning basic JavaScript course - and it’s starting to get a bit more difficult - and I am going over each of these three videos three times to really get it - then I have to do those exercises in chapter 4 which I can almost do - so I’m starting to wonder if I am ever going to reach the end, and get to a point where I can actually build my crypto on the Blockchain - can anyone else relate to this? Is there anyone else here on these courses who is interested in building their own crypto currency? Is it madness or is this realistic? I am a total beginner who has so far built websites on Wordpress. Comments please. Comments from Ivan and Filip would be much appreciated. I need a bit of support guys. Have a great weekend. D

2 Likes

Hi @doodesville
My best advice will be to never give up :wink: if you feel that the javascript course start to be a bit complicated, take a break. Javascript will definitely helps you to build the front end of you Decentralized application.
You need to define your goals and if you just start, try to split your big goal into smallest one, you will appreciate more every small win.
If you want to build your own crypto currency you can start to have a look at the ethereum blockchain 101, because it’s simple nowaday to just create an ERC20 on the ethereum blochchain (it’s basically a smart contract). When you will understand solidity you will be able to create your own token. Then get back to javascript course to build the frontend and make your ico.
There is many field to understand in the blockchain environment, it takes time and passion if you just start. But what works for me when i started was to write my goals on a paper, split it in small tasks and try to to one or two task on my todo list everyday it motivated me when i saw the progress i made.
Good luck @doodesville and don’t give up i m sure you had already learn many things since you had start.

2 Likes

Thank You Gabba, that is really helpful. D

I don’t know why I get an error message on the second alert. Do you?

<script>
  var cars = ["Volvo", "BMW"];
  var carObject = {manufacturer:"Volvo", year:2009, distance:10000};
  console.log (carObject);

  var car1 = {manufacturer:"Volvo", year:1996, distance:10000};
  var car2 = {manufacturer:"BMW", year:1200, distance:10000};
  var car3 = {manufacturer:"Ford", year:2016, distance:10000};

  var myCars = {car1,car2,car3};
  console.log (myCars[0]);

  alert(myCars.car1.manufacturer);  // Ok
  alert(myCars[0].manufacturer);    // Gives error: myCars[0] is undefined!

</script>

Hi @Pellerin

myCars is an object storing objects and properties of Javascript objects are unordered.
You can’t access an object stored in an object without defining a key.
However you can use this syntax if it’s really what you want to do:

myCars[Object.keys(myCars)[0]]
{manufacturer: "Volvo", year: 1996, distance: 10000}

If you want to use the first notation you will have to store your objects with a key value syntax where the index is the key:

var myCarsByIndex = {0: car1}
myCarsByIndex[0]
{manufacturer: "Volvo", year: 1996, distance: 10000}

or store an array inside your object

myCarsByIndex = {"ArrayOfCars":[car1, car2, car3]}
{ArrayOfCars: Array(3)}
myCarsByIndex.ArrayOfCars[0]
{manufacturer: "Volvo", year: 1996, distance: 10000}

Hello again, I am doing OK for a beginner but I am unclear about saving to the desktop - so far I have managed to save my code to the desktop on the actual screen with a chrome icon, and I can open the code into the browser from there - also, I can save the code to the desktop in the laptop c:/ area - (with me so far) - but then I made a folder in the desktop file and I tried to save my code into the folder, and it just won’t do it and says I’m not allowed to save to this area.
My questions: do I need to upgrade my windows software? Do I need a Dell instead of an Acer laptop? Any suggestions? I know this sounds really lame but I’m a beginner and I graduated in Fine Art painting, so help me out guys, I’m frantic! D.

array.push($("#primo").val();

guys its possible to push to an array like this ?
i know that right sintax is :
var a=($("#primo").val();
array.push(a);

but i want to understand if possible to make it more easy to write .

Thanks to all who reply

Hi @sanji94m

Yeah you can definitely do that, their is just a parenthesis missing in you example:

var a = []
a.push($("#primo").val());
2 Likes

Hello Gabba,
Have you ever built an ICO.

I would be interested to know how much experience you have.

D.

This is an old question, but it doesn’t look like anyone answered it…so here I go:

% is an uncommon math operation called modulus that divides the numerator by the denominator but returns the value that is leftover from the operation. As per your example:

(10+22)%3 =
32%3 = 32/3 = 10.6666667 (now remove the whole number part leaving just the decimal 0.6666666 and multiply by the denominator…) = 0.6666667 * 3 = 2.0000001 (rounding down we get 2)

2 Likes

Here is an article I found super helpful when I was starting to learn to code. It helped set realistic expectations, but ultimately saved me from quitting several times. I hope this helps someone else not give up too.

5 Likes

Hi. Thanks for the link to the article. :clap:

Can you also post this in the Watercooler category? So others can read the article too?

Ivo

1 Like