JavaScript

How To Navigate Between Views with Vue Router — step-by-step Javascript tutorial on Progressive Robot

How To Navigate Between Views with Vue Router

With single-page applications, every page or view is rendered within one HTML page. User interface (UI) frameworks like Vue.js render these pages and components when needed through the use of a Virtual DOM. In Vue.js, you can create several views using the first-party library Vue Router. This router makes an association with a view to a URL. In this tutorial, you are going to learn how to add the Vue Router library, integrate it into your project, and create dynamically generated routes.

Read more
How To Set Up a React Project with Create React App — step-by-step Javascript tutorial on Progressive Robot

How To Set Up a React Project with Create React App

Starting a new JavaScript project with React used to be a complicated process. But now, Create React App includes all the JavaScript packages you need to run a React project, including code transpiling, basic linting, testing, and build systems. In this tutorial, you’ll use Create React App to start a React application. You’ll also run a build to create a minified version of your app, use a server with hot reloading to give you instant feedback, and explore the React file structure.

Read more
How To Troubleshoot 'ReferenceError', 'SyntaxError' and 'TypeError' in JavaScript — step-by-step Javascript tutorial on Progressive Robot

How To Troubleshoot ‘ReferenceError’, ‘SyntaxError’ and ‘TypeError’ in JavaScript

JavaScript is a programming language used in frontend and backend development. When working with JavaScript, deciphering error messages can feel a bit daunting. Understanding what an error message is referring to is important when you’re troubleshooting issues within an application. In this tutorial, you’ll learn about three common JavaScript error types that appear in a browser environment: “ReferenceError”, “SyntaxError”, and “TypeError”.

Read more
How To Work with Files using the fs Module in Node.js — step-by-step Javascript tutorial on Progressive Robot

How To Work with Files using the fs Module in Node.js

With Node.js, you can use JavaScript to programmatically manipulate files with the built-in fs module. The name is short for “file system,” and the module contains all the functions you need to read, write, and delete files on the local machine. In this article, you will use the asynchronous fs module to read a file with fs.readFile(), create and write to a new file with fs.writeFile(), delete the file with fs.unlink(), and move the first file with fs.rename().

Read more
CHAT