Check out example codes for "rust printing string on stdout". It will help you in understanding the concepts better.

Code Example 1

fn main() {
	println!(); // prints just a newline
	println!("hello there!");
    // x can be any var that implements the std::fmt::Display trait
	let x = true;
	println!("x is {}", x);

Learn ReactJs, React Native from