JavaScript is a versatile language that can be used to create web applications and improve web pages. Learning JavaScript can help you become a better web developer and make you more marketable to potential employers....
If you’re debating whether or not you should learn programming, here are top 6 reasons why you should learn to code.
TL;DR People should learn to code because it is a valuable skill that can be used in many different ways....
This is the second article of the series “Learn JavaScript” aimed at helping you with your first steps in the JavaScript world.
Last time, you learned how to prepare your JavaScript workspace by installing Visual Studio Code and Node....
There are various approaches to learning JavaScript. One of the most common approaches is to start with HTML in a playground that runs in your browser.
The upside is that it’s very easy to get started, but the downside is that when you get to actually learning JavaScript you’ve lost your motivation, and you can’t move to the next level....
Centering an image in HTML is a little harder than centering text as there’s no single CSS property that you could use to make sure your image appears at the center of the web page....
Before HTML5 there used to be a <center> tag that allowed you to center text on your web page. Now it’s deprecated. If you need to center the text on your HTML page, you should use the CSS property text-align....
When you’re working with CSS, there’s nothing easier than capitalizing each letter in string using the text-transform CSS property. To be fair, it’s way easier than capitalizing a string with Javascript....
Not all JavaScript programs are the same as you can use JS for backend, frontend and mobile development. Running JavaScript code depends on what kind of code it is.
Frontend JS If you’re looking to run the JavaScript code that manipulates the DOM (document object model) and works within the context of the web page, then the best way to “run it”, would be to link the JS script to the HTML document and open this HTML in the browser....
The += operator is a shorthand for the addition assignment operator. It is used to add a value to a variable. The value can be an integer, floating point number, string, or object....
You can exit from any JS function using the return keyword.
It can be placed anywhere in your code.
const exampleFunction = () => { console.log('hello'); return; console.log('world'); console.log('!'); } The example above is quite artificial, but it demonstrates how return works very well....