namespaces naskah

/*
The namespace is used for logical grouping of functionalities. 
A namespace can include interfaces, classes, functions and variables 
to support a single or a group of related functionalities.
*/

namespace Vehicle {
  const name = "Toyota"
  export function getName () {
      return `${name}`
  }
}

Vehicle.getName() //Toyota
Tiny Coders