I am finding difficulty declaring array in typescript and accessing it.
below is the code working for me
class Book { public BookId: number; publ
A cleaner way to do this:
class Book { public Title: string; public Price: number; public Description: string; constructor(public BookId: number, public Author: string){} }
Then
var bks: Book[] = [ new Book(1, "vamsee") ];