Click here to Skip to main content
15,397,828 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Google tranlaste:
Hello, I am very new to this, my idea is to create a page to calculate the weight of a human being on other planets, but it tells me that I have a syntax error which I cannot find, I would like you to tell me what the errors are . Thank you very much


file:///C:/Users/Public/Pictures/Sample%20Pictures/marte_jupiter2.0.png

Hola soy muy nuevo en esto mi idea es creear una pagina para calcular cual es el peso de un ser humano en otros planetas pero me dice que tengo un error de sintaxis el cual no encuentro, me gustaria que me dijeran cual o cuales son los errores. Desde muchas gracias

What I have tried:

Quote:
I have tried writing it in different ways and I have not been able to solve it
eh probado escribiendolo de distintos modos y no eh logrado solucionarlo
Posted
Updated 12-Jun-22 18:39pm
v2

1 solution

Firstly, this is an English language site, and we can only accept and answer questions in that language.

Secondly, don't post links to images of your error: copy and paste the complete text of the error message instead.

Thirdly, when posting a URL to a file, remember that we don't have any way to access your local hard drive, so that URL is completely useless to us.

Fourthly, without the relevant code fragment to check the syntax error error against and some idea what the line it is complaining about might be we have no chance at all of helping you to fix the problem.

So, it's going to be up to you. You should expect to get syntax errors every day, probably many times a day while you are coding - we all do regardless of how much experience we have! Sometimes, we misspell a variable, or a keyword; sometimes we forget to close a string or a code block. Sometimes the cat walks over your keyboard and types something really weird. Sometimes we just forget how many parameters a method call needs.

We all make mistakes.

And because we all do it, we all have to fix syntax errors - and it's a lot quicker to learn how and fix them yourself than to wait for someone else to fix them for you! So invest a little time in learning how to read error messages, and how to interpret your code as written in the light of what the compiler is telling you is wrong - it really is trying to be helpful!

So read this: How to Write Code to Solve a Problem, A Beginner's Guide Part 2: Syntax Errors[^] - it should help you next time you get a compilation error!
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900