Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // class definition
- var Category = {
- name: String,
- children: [Category]
- }
- // class instance
- var category = {
- name: 'machine',
- children: [
- {
- name: 'automobile',
- children: [
- {
- name: 'car'
- },
- {
- name: 'truck'
- }
- ]
- },
- {
- name: 'computer'
- }
- ]
- }
Add Comment
Please, Sign In to add comment