Hello, Today I’m going to explain how you can simulate threads in JavaScript, because JavaScript doesn’t have an explicit thread object, like C# or Java does. But it does have 2(two) methods (setTimeout and setInterval) that you can use in order to get at least some of the basic behaviours of threads. You don’t have all the features like: sleep, suspend, resume and some others, but you can specify when is going to start and end, with just these 2(two) I guaranty you can do a lot.
Hi there, today I’m going to show how you can create global and local variables in JavaScript and also try to explain why you should try to avoid creating global variables in your code, of course I’m not saying that you can’t use it, I’m only saying that if you can find another solution that will use local variables, then you should go for it, but sometimes we know that using global it’s the only way, so try to use it wisely. That’s the best advice I can give you.
Hello everybody, the topic today is going to be Handling Exceptions in JavaScript, which is pretty important because I’ve seen a lot of my coworkers been concerned on how to properly code C# or PHP, but when the time comes to interact with the user in the browser, let’s say to do some simple things like, display a message or show some results, the application just crashes, why?!? Because they didn’t give the same importance to the client side, and you as a developer is responsible to make sure not only IF but WHEN an error happens your code is able to handle it and if the system requires keep running without stopping the whole application. So I’m going to create an example to show the 2(two) ways we can do to accomplish that in JavaScript.
Hello everyone, I was really excited to do this second video tutorial because I got some good reviews on the first one and I’ll do my best to make this even better.
On the next tutorials I’ll be talking a lot of about JavaScript, so I thought it would be a good idea to show how we can debug JavaScript in Visual Studio. Because in my personal opinion debugging is the best thing you can do in order to find errors in your application. It’s really easy and this video won’t be longer than 5 minutes.
Recent Comments