generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 245
Manchester | 25-ITP-May | Mahtem T. Mengstu| Sprint 1 | Coursework/Sprint 1 #780
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
Open
Mahtem
wants to merge
16
commits into
CodeYourFuture:main
Choose a base branch
from
Mahtem:coursework/sprint-1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d6c5c0b
Described what line 3 is doing
Mahtem 2ae5aaa
Declare a variable called initials that stores the first character of…
Mahtem ebd4d3e
Describe what line 3 is doing.
Mahtem 7eb19b3
Described what line three is doing.
Mahtem f683d85
Described what line three is doing.
Mahtem 76e6a40
Declared a variable named initials
Mahtem b9a5530
Created dir and ext variables
Mahtem fc1f2d4
Described what the prpgram is doing
Mahtem 927521c
Modified
Mahtem 7db8109
Modified
Mahtem 97637ad
Added codewar related code
Mahtem 5dab8a6
Used template string to display initials
Mahtem 6e76b0d
Differentiated const and let
Mahtem 6ac3015
Corrected typo
Mahtem 1e97c2e
Suggested better names in "camel case"
Mahtem 4010b4d
corrected name suggestion according to camelCase
Mahtem File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,10 +32,16 @@ console.log(result); | |
|
|
||
| // Ans: the variable result represent total movie lenght, Movie duration_hr_min_sec would be better name. | ||
|
|
||
| // In a "camel case" the following options would be better names | ||
| // 1. MovieDurationHrMinSec | ||
| // 2. TotalMovieSpan | ||
| // 3. TotalMoviePeriod | ||
|
||
|
|
||
| // f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer | ||
|
|
||
| // Ans: I have tried with different values and it seems to work for all values, but it needs to validate to avoid entering negative values | ||
| // I inserted --3500 and returned 0: -58: -20 which does not mean real time representation. | ||
|
|
||
|
|
||
| // Corrected typo reminder -----> remainder | ||
| // Suggested better names in "camel case" a convention in Javascript | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In Javascript, the convention is to use "camel case". This would be perfect for a language like Python 🙂
Could you suggest one in camel case?
See this article: link