Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.18 KB

dart-js-reference.md

File metadata and controls

27 lines (20 loc) · 1.18 KB

Dart/Flutter vs JavaScript Reference

A quick reference guide for comparing common Dart/Flutter commands and concepts with their JavaScript/Node.js equivalents.

Commands

JavaScript/Node.js Dart/Flutter
npm init dart create
npm install dart pub get
npm install <package-name> dart pub add <package-name>
npm install --save-dev <package-name> dart pub add --dev <package-name>
npm test dart test
node <filename> dart run <filename>

Files

JavaScript/Node.js Dart/Flutter
package.json pubspec.yaml

Syntax

JavaScript/Node.js Dart/Flutter
const final
let var