Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exercise to practice refactoring old JavaScript to modern JavaScript / ES6

License

NotificationsYou must be signed in to change notification settings

techreturners/javascript-refactoring-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Its time to put those modern JavaScript skills into practice 🙌

We've created an existing JavaScript code base for you.

The purpose of this code is to produce sales information about transactions.

Given an input set of data such as this:

['notebook', 'notebook', 'mouse', 'keyboard', 'mouse']

It should produce a summary of what things have been purchased and how many of each item. The results should be sorted by the number of transactions, then alphabetically.

['mouse 2', 'notebook 2', 'keyboard 1'].

We've already created the unit tests to validate your solution.

The unit tests are currently passing. They should continue to pass after you have refactored the code.


🗒️ Instructions

✅ Read through this material carefully

✅ Arrange a time to meet up as a group (Note: You do NOT need a paid Zoom account. Zoom gives you 40 minutes free and you can just end the meeting at 40 minutes and start a new one)

✅ When you meet, discuss and make notes on the changes you would make to the code base and the reasons why (Note: You do NOT need to review the code shown in the tests only the implementation files)

✅ Choose one team member to fork and clone the repository and whilst still working as a group, work through and refactor the code. Remembering to commit little and often as you make changes to the code base.


💥 Submission Process

✅ Send us a link to your forked GitHub repository (Note: All group members can send us the same link)

About

Exercise to practice refactoring old JavaScript to modern JavaScript / ES6

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp