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.

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter8: Arrays
Section: Chapter Questions
Problem 22E
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning