CodeYourFuture / Module-JS3

The central repo for JS3
1 stars 76 forks source link

NW6 | Nazanin Saedi | object-destructuring | Module-JS3 | Exercise 3 | Week 3 #322

Open nazaninsaedi opened 4 months ago

nazaninsaedi commented 4 months ago

one explanation :

The console.log("QTY\tITEM\t\t\tTOTAL"); line is used to print the header of the receipt, which includes the titles for each column: "QTY" for quantity, "ITEM" for item name, and "TOTAL" for total cost.

Here's a breakdown of what each part of the string does:

\t: This is an escape sequence representing a tab character. It adds spacing between the columns. "QTY": This is the title for the quantity column. "ITEM": This is the title for the item name column. "\t\t\t": This adds extra tabs to provide additional spacing between the item name column and the total column. "TOTAL": This is the title for the total cost column.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
3 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud