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

Commit 183e04e

Browse files
Initial commit
0 parents commit 183e04e

File tree

6 files changed

+164
-0
lines changed

6 files changed

+164
-0
lines changed

‎.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

‎Day0/DataType.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* The variables 'firstInteger', 'firstDecimal', and 'firstString' are declared for you -- do not modify them.
3+
* Print three lines:
4+
* 1. The sum of 'firstInteger' and the Number representation of 'secondInteger'.
5+
* 2. The sum of 'firstDecimal' and the Number representation of 'secondDecimal'.
6+
* 3. The concatenation of 'firstString' and 'secondString' ('firstString' must be first).
7+
*
8+
* Parameter(s):
9+
* secondInteger - The string representation of an integer.
10+
* secondDecimal - The string representation of a floating-point number.
11+
* secondString - A string consisting of one or more space-separated words.
12+
**/
13+
function performOperation(secondInteger, secondDecimal, secondString) {
14+
// Declare a variable named 'firstInteger' and initialize with integer value 4.
15+
const firstInteger = 4;
16+
17+
// Declare a variable named 'firstDecimal' and initialize with floating-point value 4.0.
18+
const firstDecimal = 4.0;
19+
20+
// Declare a variable named 'firstString' and initialize with the string "HackerRank".
21+
const firstString = 'HackerRank ';
22+
23+
// Write code that uses console.log to print the sum of the 'firstInteger' and 'secondInteger' (converted to a Number type) on a new line.
24+
25+
secondInteger = +secondInteger;
26+
console.log(firstInteger + secondInteger);
27+
// Write code that uses console.log to print the sum of 'firstDecimal' and 'secondDecimal' (converted to a Number type) on a new line.
28+
secondDecimal = +secondDecimal;
29+
console.log(firstDecimal + secondDecimal);
30+
31+
// Write code that uses console.log to print the concatenation of 'firstString' and 'secondString' on a new line. The variable 'firstString' must be printed first.
32+
console.log(firstString + secondString);
33+
34+
}

‎Day0/HelloWorld.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* A line of code that prints "Hello, World!" on a new line is provided in the editor.
3+
* Write a second line of code that prints the contents of 'parameterVariable' on a new line.
4+
*
5+
* Parameter:
6+
* parameterVariable - A string of text.
7+
**/
8+
function greeting(parameterVariable) {
9+
// This line prints 'Hello, World!' to the console:
10+
console.log('Hello, World!');
11+
12+
// Write a line of code that prints parameterVariable to stdout using console.log:
13+
console.log(parameterVariable);
14+
}

‎Day1/Arithmetic Operators.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/**
2+
* Calculate the area of a rectangle.
3+
*
4+
* length: The length of the rectangle.
5+
* width: The width of the rectangle.
6+
*
7+
* Return a number denoting the rectangle's area.
8+
**/
9+
function getArea(length, width) {
10+
let area;
11+
// Write your code here
12+
area = length * width;
13+
return area;
14+
}
15+
16+
/**
17+
* Calculate the perimeter of a rectangle.
18+
*
19+
* length: The length of the rectangle.
20+
* width: The width of the rectangle.
21+
*
22+
* Return a number denoting the perimeter of a rectangle.
23+
**/
24+
function getPerimeter(length, width) {
25+
let perimeter;
26+
// Write your code here
27+
perimeter = 2 * (length + width);
28+
return perimeter;
29+
}

‎LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Deepak Raj
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# [10DaysOfJavaScript](https://www.hackerrank.com/domains/tutorials/10-days-of-javascript)
2+
3+
- [10DaysOfJavaScript](#10daysofjavascript)
4+
- [Introduction](#introduction)
5+
- [Difficulty Level](#difficulty-level)
6+
- [Usage](#usage)
7+
- [Support](#support)
8+
- [Contributing](#contributing)
9+
- [Authors and acknowledgment](#authors-and-acknowledgment)
10+
- [License](#license)
11+
- [Project status](#project-status)
12+
- [Author](#author)
13+
14+
## Introduction
15+
16+
- HackerRank 10DaysOfJavaScript Challenge.
17+
- Check [10DaysOfJavaScript](https://www.hackerrank.com/domains/tutorials/10-days-of-javascript) Challenge.
18+
19+
## Difficulty Level
20+
21+
Hackerrank has around 5 levels of difficulty:
22+
23+
- Easy
24+
- Intermediate
25+
- Hard
26+
- Expert
27+
- Advanced.
28+
I suggest you pick a certain language and start with the warmup challenges to get used to the environment.
29+
30+
## Usage
31+
32+
A good way to start learning python concept.
33+
34+
## Support
35+
36+
contributors
37+
38+
## Contributing
39+
40+
Before submitting a bug, please do the following:
41+
42+
Perform basic troubleshooting steps:
43+
44+
- Make sure you are on the latest version. If you are not on the most recent version, your problem may have been solved already! Upgrading is always the best first step.
45+
- Try older versions. If you are already on the latest release, try rolling back a few minor versions (e.g. if on 1.7, try 1.5 or 1.6) and see if the problem goes away. This will help the devs narrow down when the problem first arose in the commit log.
46+
- Try switching up dependency versions. If the software in question has dependencies (other libraries, etc) try upgrading/downgrading those as well.
47+
48+
## Authors and acknowledgment
49+
50+
Show your appreciation to those who have contributed to the project.
51+
52+
## License
53+
54+
For open-source projects, Under MIT License.
55+
56+
## Project status
57+
58+
## Author
59+
60+
- Project: [10DaysOfJavaScript](https://www.hackerrank.com/domains/tutorials/10-days-of-javascript)
61+
- Author: CodePerfectPlus
62+
- Language: JavaScript
63+
- Github: <https://github.com/codePerfectPlus>
64+
- Website: <http://codeperfectplus.github.io/>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /