-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible fixes for update.js #6
Comments
Hey @2M4U , could you assign me this issue? |
Hey @2M4U Keshav this side, I am looking forward to contribute in this project. I am fluent in JS and understood your problem. Please assign me this issue. |
Hey @2M4U , I am ready for the task. |
Hey @2M4U , I am Interested in the task. |
@OperativeA115 Assign me to solve this problem |
@OperativeA115 Assign me to this task |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello 2M4U usually I am a C / C++ type person but again here I am helping make your JS code better LMAO!
Use more descriptive and clear variable and function names to improve code readability. For example,
const getDateSuffix = (date)
could be namedgetDateSuffix()
, andconst WriteReadMe = async ()
could be namedwriteReadMe()
.Use
const
andlet
keywords instead ofvar
keyword to declare variables. This would prevent accidental reassignment of variables and improve code readability.Use the
async/await
syntax instead of Promises to make the code easier to read and write. This would make the code look similar to synchronous code, while still allowing it to run asynchronously.Use template literals (backticks) to create strings that contain expressions. This would make the code more readable and easier to maintain.
Use the newline character (\n) to improve the readability of long strings by adding line breaks where appropriate.
Consider using a destructuring assignment to extract properties from an object and store them in separate variables. This would make the code more concise and easier to read.
Here is how the code might look after applying these suggestions:
Hope this helps if you need anymore feedback LMK!
Thanks OperativeA115 - C++ / C Programmer
The text was updated successfully, but these errors were encountered: