Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

21. Which of the following expressions wilt return falve 0 A) 1(3c1) B) (44)es(52) D) (22 ? 1 + [ ? Love ; You); Outpat

image text in transcribed
21. Which of the following expressions wilt return falve 0 A) 1(3c1) B) (44)es(52) D) (22 ? "1" + [ ? "Love" ; "You"); Outpat 0 a. 1 b. Love c. You d. syniax error ) a. true b. false c. undefined d. None of the above 25. coat ints =[4,10,7,6,9]; coenst newlnts = ints. slice (2,4); conwle. log(newints); will Output ( ) a. [7,6,9] b. [7,6] c. [6,9] d. None of the above 26. let 0=1); let a2=o \&se (a;1,b;2}; console log(02), will Output ( ) a. true b. false c. {a:1,b:2} d. syntax erros 27. Program outpat console log(parselna(' 666+1 ') k a. 666+1 b. 667 c. 666 d. None of the above 28. Analyze the following Javascript code segment, and the output result is 0 let mystring " "I am a student"; let a "mystringsubstring(9,13); console log(a); A) stud B) tuden C) uden D) sident 29. Analyze the following Javascript code segment, and the output result is 0 let st "parselnt ("101 Middle School"); console.log(sl); A) NaN B) 101 Middle School C) 101 D) syntax error 30. Program output: console. log(max(3,4)); var max= function (a,b){ retum a>b ? a;b;}() a. syntax error b. 3 c. 4 d. None of the above - Program reading (write program running results, 3 points for each question, 27 points in total) 1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial and Managerial Accounting

Authors: Horngren, Harrison, Oliver

3rd Edition

978-0132497992, 132913771, 132497972, 132497999, 9780132913775, 978-0132497978

Students also viewed these Databases questions