Delete a Linked List Node at a given Index in TypeScript
lessonDuration 1m 46sFree
We'll learn how to remove a Node from a Linked List at a given Index.
Browse
Find courses, lessons, articles, talks, and podcasts.
364 results for "node"
Showing 1–24 · Page 1 of 16
lessonDuration 1m 46sFree
We'll learn how to remove a Node from a Linked List at a given Index.
lessonDuration 1m 7sFree
We'll learn how to get the value of a Node in a Linked List at a given Index.
lessonDuration 1m 8sFree
In this lesson we'll learn how to search through a Linked List to find the index of a Node with a given value.
lessonDuration 1m 52sFree
In this lesson we'll build a basic web server in 2 minutes using Express 5 and node 14's native ES module support. We'll start by creating a new project using `npm init` and then add `"type": "module"` to our package.json file to opt-in to ES Module support. From there we'll create an index.js file where we create an instance of the express module and add a single `GET` route that sends the response `"hello"`. Finally we listen on port 3000 and confirm that our route responds to requests using both curl and a web browser. Pre-requisites: - Install [node 14](http://nodejs.org/) - Make sure you have [curl installed](https://curl.haxx.se/) - Can use a terminal --- **Express 5** Express 5 offers very few changes from version 4. The main one I'm interested in is built-in support for async/await, which greatly simplifies how we handle network and file system I/O calls in our web application. Read more at [Migrating to Express 5](https://expressjs.com/en/guide/migrating-5.html) **async/await** Read more about these recent JavaScript language additions in [Getting Started with async/await](https://www.freecodecamp.org/news/getting-started-with-async-await-b66385983875/) on FreeCodeCamp.
lessonDuration 1m 20sFree
Optional chaining enables safe access of properties of an object. It can be enabled in a Node app by using Babel preset-env.
course
Learn how to build a simple REST API to store notes using the latest built-in node features including native ES modules, the fs/promises API, async/await, the nullish coalescing operator, and destructuring. No compilers, no build steps, pure code. This collection of lessons is great for beginners to Express as long as they are familiar with JavaScript and the HTTP protocol. Those more familiar with node and express will appreciate a fast-paced, modern take on using these popular tools and will likely benefit most from the lessons on input validation, models (which emphasizes a lot of new syntax), using fs/promises to serialize a `Map`, and accessing asynchronous data with `async/await`. Pre-requisites: - [Install curl](https://curl.haxx.se/) - [Install node 14](http://nodejs.org/) - Be familiar with the terminal View the source for this project in the [project's github repo](https://github.com/xjamundx/egghead-express). **Notes**: - I'm not very pedantic about REST and basically just mean an API over HTTP - [Express 5](https://expressjs.com/en/guide/migrating-5.html) is still in alpha (and has been for over two years), but most of these lessons apply to Express 4 as long you use something like [express-async-errors](https://www.npmjs.com/package/express-async-errors) to add support for `async` routes and middleware
course
Prisma is an open-source ORM. It consists of the following parts: - Prisma Client: Auto-generated and type-safe query builder - Prisma Migrate: Migration system - Prisma Studio: GUI to view and edit data in your database Prisma Client can be used in any Node.js or TypeScript backend application (including serverless applications and microservices). This can be a REST API, a GraphQL API, a gRPC API, or anything else that needs a database. In this course, you will learn how to initialize Prisma in a TypeScript Node project, use Prisma Client to create and find records, use Express to create data dynamically, and more!
lessonDuration 1m 44s
The Prisma CLI comes with commands to initialize Prisma in a project, run migrations, generate Prisma Client and more. In this lesson, we install the relevant dependencies and initialize Prisma in a TypeScript Node project.
lessonDuration 3m 4sFree
To use `VanillaTilt` we need to get access to a `div` so that it can work its magic. To make this happen we'll learn about React's `useRef` and `useEffect` methods. **We'll cover:** - Creating a reference to a DOM node with `useRef` - Making a callback function using `useEffect` - Using `.init` to assign `VanillaTilt` to that DOM node - Returning a cleanup function to avoid memory leaks - Initializing `useEffect` with a dependency list to prevent rerendering.
lessonDuration 1m 40sFree
We create a class called `MapStore` that serializes the [JavaScript Map object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) to JSON and stores that on the filesystem using node 14's [fs/promises API](https://nodejs.org/api/fs.html#fs_fs_promises_api). In future lessons we'll use this class to persist our in-memory notes. View the source for [MapStore.js](https://github.com/xjamundx/egghead-express/blob/master/lib/mapstore.js) on the [projects github repo](https://github.com/xjamundx/egghead-express/).
lessonDuration 39sFree
It's common in your node development workflow to lose track of an orphaned node process. Alfred provides a great workflow to help find those node processes and stop them with a simple keypress.
lessonDuration 3m 5sFree
There are many, many Node utilities out there that you may want to use in your everyday workflow. You can wrap these utilities with simple command line APIs to expose them to the rest of your computer.
lessonDuration 1m 26sFree
In this video, you'll learn how to Node.js on your computer using [nvm](https://github.com/nvm-sh/nvm) (also known as Node Version Manager). Using `nvm` allows you to easily upgrade or switch between versions of Node straight from the command line.
lessonDuration 59sFree
*Go ^1.12, Node ^12.14.0* Compiling Go programs to WebAssembly does not require Emscripten, and the process is pretty straight forward. In this lesson, we will learn how to compile a simple Go program to a WebAssembly binary, then execute it with Node.js.
lessonDuration 3m 18s
Using npx we will test out different versions of a node module from the command line. Depending on your use case you may also need to utilize the -p flag that will temporarily install certain dependency packages during.
lessonDuration 3m 25s
We will learn how to use npx to run node modules that are already installed locally in a package instead of manually poking into the node_modules/.bin folder or leveraging an existing npm script.
lessonDuration 4m 15sFree
Sometimes when authoring code for Node you feel the need to bring in all the great features you're using writing your front-end code. Parcel comes to the rescue by easily allowing you to `target=node` and automatically compiling and preparing your JavaScript to be node-ready.
lessonDuration 1m 39sFree
In this lesson we'll use the new createRef() method to retrieve a node in a child component and pass it back to it's parent component. We'll also show how you can use a ref in a functional component with createRef(). Additional Resources: https://reactjs.org/docs/refs-and-the-dom.html#exposing-dom-refs-to-parent-components
lessonDuration 1m 59sFree
With Node installed, you can begin running JavaScript directly in the terminal. The Node REPL allows you to execute any JavaScript expression to check the output. You can even install packages from npm and load you local JavaScript files to test how libraries and functions run.
lessonDuration 1m 31sFree
As node projects evolve, new features are added all the time. This results in different errors or results as you're migrating from one version to another. `npx` allows you to try out any version you want by simply adding the version number to the project you're using. This lesson covers using the TypeScript compiler through a different versions as async function support was added.
lessonDuration 5m 19sFree
In this lesson we'll show how to setup a `.babelrc` file with presets and plugins. Then create npm scripts that use `babel-node` and `babel`. With `babel-preset-env` we'll show how to target specific versions of node and how to use babel plugins, while not transpiling features (like `async` `await`) that are already supported by node natively.
lessonDuration 12m 5sFree
In this lesson, we will use Chai's request method to test our Node application's API responses. By the end of this lesson, you will know how to: - install the prerequisites to use mocha and chai in your application - test for HTTP status response codes - test for a string of text on a page - test for a json response and validate the properties of the object - write tests that not only verify the response of your application, but the behavior as well
lessonDuration 7m 4s
In this lesson we will look at pulling out complex npm script logic into an external JavaScript file. Instead of writing bash scripts you can leverage your JavaScript abilities to automate your build process. We’ll use some helper node modules such as shelljs, opn-cli, and babel-cli.
lessonDuration 4m 2sFree
Now offers a friction-free way to deploy node applications right from the terminal. In this lesson, we'll learn how to use the now CLI to deploy a node application, including the deployment of environment variables. We'll also look at how now retains each version of your application, how to see the running code right in the browser and how to remove a deployment when you no longer want that version.