Variables and Constants
What const and let in Node.js correspond to in Go, Rust, Swift, and Java.
- Node.js
- Go
- Rust
- Swift
- Java
const you = new NodeDeveloper();
Each post takes a familiar JavaScript concept and sets it next to the equivalent code in other languages. Pick a language in any code block and the whole page follows.
What const and let in Node.js correspond to in Go, Rust, Swift, and Java.
How Node.js's Promise and async/await compare to goroutines (Go), Future + tokio (Rust), Swift concurrency, and CompletableFuture (Java).
How Node.js's throw and try/catch/finally compare to error values in Go, Result in Rust, throws in Swift, and exceptions in Java.