Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
If writing in Visual Studio code you make a mistake it is often highlighted:
Visual Studio code does detect:
wrong class name (NotMyClass)
wrong local variable (pp2)
wrong function name (rect)
But it does not detect anything wrong if it starts with "this". In particular "this.p3" does not exist. And even when I open the site in the browser (after fixing other mistakes) it executes "well" and instead of "this.p3" I get (I assume?) 0 and no any error log...
Why is it so? Any chance teaching it to highlight this mistake?
P.S. I'm from C#.NET world and relatively new to JS/TS so please educate if I miss something basic.
Yes, ASDFGerte is right, it is indeed JS ... I made JS work inside of Angular application (don't ask why, I'm learning and playing) but forgot this is JS and not everything from TS applies to JS.
I guess the answer is: don't use JS. Thanks all!
P.S. Also, many thanks for other hints
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed last month.
Improve this question
screen shot from the courseI am a noob and going throw a course. pls help me identify the problem here screen shot form my code VS
thanks for help in advance !
here is the a screen shot from the course.
I think the problem is space between $ and {yearsLeft} in your console.log. Try this one: ...${yearLeft}...
Probably you need to type ${yearLeft}, but not yearsLeft. But better to attach code and describe what you have and expectations instead of just photo attachment.
remove the space in between $ and {yearsLeft}
should be ${yearsLeft} not $ {yearsLeft}
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I'm trying to host a page on GitHub pages, but I seem to be having some errors with it.
From what I understand, everything is where it should be, but I keep getting a 404 error when I try and access the page.
Link to the repo:
https://github.com/Karan-Ghatt/My-Portfolio
It should be active at:
https://karan-ghatt.github.io/My-Portfolio/
I would really appreciate if you could have a look and see if you can tell what's going on.
Much love people!
EDIT:
Thank you for your help, this turned out to be a naming error.
Your index.html starts with a capital 'I', making it Index.html.
Your site is live at https://karan-ghatt.github.io/My-Portfolio/Index.html.
You can rename the Index.html to index.html so that the directory call catches it.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I'd like to ask about sudden stop of jQuery. Originally I used $(function(){ ... }) but it just stopped working, even though jQuery still works inside of angularjs functions. I tried rewriting it as $(document).ready(function(){ ... }) but it still isn't working.
Any idea of how to fix that?
You may want to use the Developer Tools (F12) within your browser to check the Console and Network tabs to see if any errors are present or if any 404s are popping up due to your jQuery library not being able to be accessed properly.
This could easily be caused if you are loading the files from a CDN and there is an issue with your connection (or the CDN). Additionally, you'll want to ensure that you aren't calling your $(document).ready({...}); call until after your jQuery <script> file has been referenced
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I am trying to make a post to an API endpoint. It seems to work in safari and chrome even ie. But firefox seems to want to add a double quote to the beginning and end of the json string. I dont know that this is a huge issue to most of the community but I am under deadline and this is the only thing keeping me from hitting my target.
console.log(JSON.stringify($('FooObject').serializeObject()));
This returns
"{"key":"value"}"
I need
{"key":"value"}
Any suggestions? I have trolled the net for about 3 hours and no dice.
Please be nice I do not do js often, more than often I do networking and security this is a edge case that I need tackled.
Thank you in advance.
If the double quotes display in the Firefox console- then quotes are just to signify that it's a string.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
So here's what I'm trying to achieve. http://codepen.io/ifen/pen/mBcCo
In mine http://jsbin.com/jafiwani/1/edit , when I enter something into the form and move on to the next, the box closes up and shows the default name. If you try to put anything into both forms you'll understand what I mean. Any help would be great, I've tried everything I know.
You're just missing jQuery from that jsbin. If you go to "Add Library" at the top and add jQuery 2.1.0 you'll see that it works!
n.b you should always check out the javascript console (available in all browsers by viewing the developer tools) for any javascript errors to see what's going wrong. In this case it says:
Uncaught ReferenceError: $ is not defined
This means that the jQuery library that much of the code here depends on (see anything with a $ - that's jQuery in action) is missing.