Exercise: String Parsing
Test your knowledge of the trim and split functions.
We'll cover the following...
Suppose the following CSV data string is given. Parse the data such that you create an array of lines. Each line is an array of strings containing each data point once.
Press + to interact
const data = `Title,Author,Publication Date,PublisherES6 in Practice,Zsolt Nagy,2017,Self-publishedThe Developer's Edge,Zsolt Nagy,2016,Self-publishedRegex Quick Syntax Reference,Zsolt Nagy,2018,ApressThe Charismatic Coder,Zsolt Nagy,2018,Self-publishedDeep Dive into Functional JavaScript,Zsolt Nagy,2017,PacktPubImplementing and Testing Applications using Functional JavaScript,Zsolt Nagy,2017,PacktPubMastering Functional JavaScript Libraries,Zsolt Nagy,2017,PacktPubBeginning Modern JavaScript Development with Microservices WebRTC and React,Zsolt Nagy,2017,PacktPubBeginning ASP.NET,Zsolt Nagy,2017,PacktPubBecome the CSS Hero of Your Office with CSS Architecture,Zsolt Nagy,2017,SitePointSetting Up and Kick Starting TypeScript,Zsolt Nagy,2017,SitePoint`;
...