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
icon
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
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
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Linux
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.
Similar questions
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education