By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Forums - General - Is anyone here familiar with JavaScript?

I have an assignment for class, and well I'm starting to panic. I'm supposed to do a confirmation, which if I say yes the action occurs with a prompt for me to put in a specific number. If I say no, the action is not supposed to occur, and it's supposed to indicate that the person declined the confirmation.



Around the Network
Bandorr said:
Yes.

Let's start with you pasting your source code and see what's wrong with it.

God, now I'm facing a dilemma. I want help, but I'm scared of posting the source code, because I don't know if that'll count as cheating.



Bandorr said:
VGPolyglot said:

God, now I'm facing a dilemma. I want help, but I'm scared of posting the source code, because I don't know if that'll count as cheating.

Fair we can do that easier.

Do you know how to make a Confirm alert? one that ask you to press a button?

And do you know how to make a Prompt one where you ask them to enter a number?

I got the confirmation to show up, but whether I click OK or cancel, nothing happens.



What program do you use for Javascript? VisualStudio?



JRPGfan said:

What program do you use for Javascript? VisualStudio?

Brackets.



Around the Network
Bandorr said:
Oh my advice is assumed on there aren't errors.
Otherwise you should open up your error logs and make sure there are no errors.

How do I access the error log?



Bandorr said:
VGPolyglot said:

How do I access the error log?

No clue with brackets.

https://github.com/ghalex/brackets-console

Maybe try that? I've never heard of brackets.

I just use firefox. I hit F12, or ctrl+shift+k.

Well you can paste the source code. And I will tell you "it works" or "there is an error". I won't tell you where the error though if that helps.

I'll send you a PM of it.



OK. This was solved! A big thanks to Bandorr, without his help I would be screwed! I still have another JavaScript project that I'm going to start tomorrow, let's hope that one's not nearly as big as a doozy!



I'm familiar enough to know that JavaScript sucks. I hope I will never have to use a dynamically typed language in my job once I graduate. I'm currently working on a TypeScript project and while it's a lot better than JavaScript, its relationship with JavaScript still shows.



Glad it's sorted :)