Solving a simple Javacript question using for loop and array

I am trying to solve this question using Javascript for loop and array but got stuck halfway. Need some guidance. So far what I came up with is this: const array1 = [‘S’,’A’,’I’,’N’,’S’]; var text=""; for(let y = 0; y < array1.length; y++){ text += array1[y]; console.log(text); } The output are: S SA SAI SAIN… Read More Solving a simple Javacript question using for loop and array

Assign a property of nested array inside a new string array

I’m new in VueJs and Typescript, so I have four interfaces: export interface ShipMethodResponse { companyTypeList: CompanyType[] } export interface CompanyType { companyTypeId: string companyTypeName: string companyList: Company[] } export interface Company { companyId: string companyTypeId: string companyName: string companyAbbreviation: string companyDescription: string companyWebsite: string shipMethodList: ShipMethod[] } export interface ShipMethod { shipMethodId: number companyId:… Read More Assign a property of nested array inside a new string array