was told to use readline-sync to get the input from the user, I installed the npm to my command terminal. But I keep getting this giant error message. Can you explain why I keep getting this message, and I like the output of my code as is. I'm just trying to fix the error message.
was told to use readline-sync to get the input from the user, I installed the npm to my command terminal. But I keep getting this giant error message. Can you explain why I keep getting this message, and I like the output of my code as is. I'm just trying to fix the error message.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
I was told to use readline-sync to get the input from the user, I installed the npm to my command terminal. But I keep getting this giant error message. Can you explain why I keep getting this message, and I like the output of my code as is. I'm just trying to fix the error message.
![Users\bcook\cop2801\assignment_2\triangle.js
- Notepad++
Edit Search View Encoding Language Settings Tools Macro Run Plugins Window ?
E ca ha
$||
51
power.js X
square_rootjs X
ngle.js X Datajs X fermatis X
const readlineSync
9
423
12
15
16
18
19
20
21
22
23
22
24
let triangleSidel readlineSync.question ("Enter the length of the first side of the triangle: "); //side 1 of the triangle, asking f
console.log("You entered" +triangleSidel+ "for side 1 of the triangle.");
let triangleSide2 = readlinesync.question("Enter the length of the second side of the triangle: "); //side 2 of the triangle, asking f
console.log("You entered" +triangleSide2+ "for side 2 of the triangle.");
require('readline-sync');
=
let triangleSide3 = readlineSync.question ("Enter the length of the third side of the triangle: "); //side 3 of the triangle, asking for
console.log("You entered" +triangleSide3+ "for side 3 of the triangle.");
}
else {
if (triangleSidel > triangleSide2 + triangleSide3 II
triangleSide2 > trianglesidel + triangleSide3 ||
triangleSide3 > triangleSidel + triangleSide2) {
console.log("No, you can not make a triangle.");
}
console.log("Yes, you can make a triangle.");
NppExec Console
CD: C:\Users\bcook\cop2801\assignment_2
Current directory: C:\Users\bcook cop2801\assignment_2
node triangle.js
Process started (PID=22336) >>>
C:\Program Files\nodejs\node.exe[22336]: c:\ws\src\node_file.cc:1920: Assertion (argc) == (5)' failed.
77°F
Partly sunny
1: 00007FF65CCB2BCF node_api_throw_syntax_error+175519
2: 00007FF65CC383A6 SSL_get_quiet_shutdown+64006
3: 00007FF65CC38782 SSL_get_quiet_shutdown+64994
4: 00007FF65CC2CA17 SSL_get_quiet_shutdown+16503
5: 00007FF65D69895D v8::internal::Builtins::code+248237
6. 00007CCESNEO0560 10. internal Duiltine: podo-347735
JavaScript file
Q Search
length: 1,073 lines:24
W
I
Ln: 11 Col:1 Pos: 349](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F276284ce-ffcc-4286-8c29-141f21764224%2F790565e6-2e59-4aab-80a7-7c42a28f7257%2Ftk2j0at_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Users\bcook\cop2801\assignment_2\triangle.js
- Notepad++
Edit Search View Encoding Language Settings Tools Macro Run Plugins Window ?
E ca ha
$||
51
power.js X
square_rootjs X
ngle.js X Datajs X fermatis X
const readlineSync
9
423
12
15
16
18
19
20
21
22
23
22
24
let triangleSidel readlineSync.question ("Enter the length of the first side of the triangle: "); //side 1 of the triangle, asking f
console.log("You entered" +triangleSidel+ "for side 1 of the triangle.");
let triangleSide2 = readlinesync.question("Enter the length of the second side of the triangle: "); //side 2 of the triangle, asking f
console.log("You entered" +triangleSide2+ "for side 2 of the triangle.");
require('readline-sync');
=
let triangleSide3 = readlineSync.question ("Enter the length of the third side of the triangle: "); //side 3 of the triangle, asking for
console.log("You entered" +triangleSide3+ "for side 3 of the triangle.");
}
else {
if (triangleSidel > triangleSide2 + triangleSide3 II
triangleSide2 > trianglesidel + triangleSide3 ||
triangleSide3 > triangleSidel + triangleSide2) {
console.log("No, you can not make a triangle.");
}
console.log("Yes, you can make a triangle.");
NppExec Console
CD: C:\Users\bcook\cop2801\assignment_2
Current directory: C:\Users\bcook cop2801\assignment_2
node triangle.js
Process started (PID=22336) >>>
C:\Program Files\nodejs\node.exe[22336]: c:\ws\src\node_file.cc:1920: Assertion (argc) == (5)' failed.
77°F
Partly sunny
1: 00007FF65CCB2BCF node_api_throw_syntax_error+175519
2: 00007FF65CC383A6 SSL_get_quiet_shutdown+64006
3: 00007FF65CC38782 SSL_get_quiet_shutdown+64994
4: 00007FF65CC2CA17 SSL_get_quiet_shutdown+16503
5: 00007FF65D69895D v8::internal::Builtins::code+248237
6. 00007CCESNEO0560 10. internal Duiltine: podo-347735
JavaScript file
Q Search
length: 1,073 lines:24
W
I
Ln: 11 Col:1 Pos: 349
![NppExec Console
CD: C:\Users\bcook\cop2801\assignment_2
Current directory: C:\Users\bcook\cop2801\assignment_2
node triangle.js
Process started (PID=22336) >>>
C:\Program Files\nodejs\node.exe[22336]: c:\ws\src\node_file.cc:1920: Assertion (argc) == (5)' failed.
1: 00007FF65CCB2BCF node_api_throw_syntax_error+175519
2: 00007FF65CC383A6 SSL_get_quiet_shutdown+64006
3: 00007FF65CC38782 SSL_get_quiet_shutdown+64994
4: 00007FF65CC2CA17 SSL_get_quiet_shutdown+16503
5: 00007FF65D69895D v8::internal::Builtins::code+248237
6² 000076CASNA00560 10-intornal-Duiltineucodo1747775
JavaScript file
77°F
Partly sunny
Q Search](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F276284ce-ffcc-4286-8c29-141f21764224%2F790565e6-2e59-4aab-80a7-7c42a28f7257%2F471a77_processed.jpeg&w=3840&q=75)
Transcribed Image Text:NppExec Console
CD: C:\Users\bcook\cop2801\assignment_2
Current directory: C:\Users\bcook\cop2801\assignment_2
node triangle.js
Process started (PID=22336) >>>
C:\Program Files\nodejs\node.exe[22336]: c:\ws\src\node_file.cc:1920: Assertion (argc) == (5)' failed.
1: 00007FF65CCB2BCF node_api_throw_syntax_error+175519
2: 00007FF65CC383A6 SSL_get_quiet_shutdown+64006
3: 00007FF65CC38782 SSL_get_quiet_shutdown+64994
4: 00007FF65CC2CA17 SSL_get_quiet_shutdown+16503
5: 00007FF65D69895D v8::internal::Builtins::code+248237
6² 000076CASNA00560 10-intornal-Duiltineucodo1747775
JavaScript file
77°F
Partly sunny
Q Search
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education