...

/

Exercise: String Parsing

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,Publisher
ES6 in Practice,Zsolt Nagy,2017,Self-published
The Developer's Edge,Zsolt Nagy,2016,Self-published
Regex Quick Syntax Reference,Zsolt Nagy,2018,Apress
The Charismatic Coder,Zsolt Nagy,2018,Self-published
Deep Dive into Functional JavaScript,Zsolt Nagy,2017,PacktPub
Implementing and Testing Applications using Functional JavaScript,Zsolt Nagy,2017,PacktPub
Mastering Functional JavaScript Libraries,Zsolt Nagy,2017,PacktPub
Beginning Modern JavaScript Development with Microservices WebRTC and React,Zsolt Nagy,2017,PacktPub
Beginning ASP.NET,Zsolt Nagy,2017,PacktPub
Become the CSS Hero of Your Office with CSS Architecture,Zsolt Nagy,2017,SitePoint
Setting Up and Kick Starting TypeScript,Zsolt Nagy,2017,SitePoint
`;
...