DrSchool Learn coding, fast.
EN AR BN CS DE EL Search

Variables — Example 12

Quick explanation + ready code for: Variables.

Rust Variables Back to examples
Back to language
Syntax: Variables in Rust. ID: #12

Code

const name = "DrSchool";
let count = 1;
console.log(name, count);

Notes

You can copy this snippet and adapt it. For advanced, add real-world inputs, edge cases, and tests.