Check out example codes for "Rust". It will help you in understanding the concepts better.

Code Example 1

fn main() {
    println!("Hello World!");
}
// Trying make C/C++ sound obselete

Learn ReactJs, React Native from akashmittal.com