in Education by
How do you find the number with the highest value of x and y? (a) ceil(x,y) (b) top(x,y) (c) Math.ceil(x,y) (d) Math.max(x,y) I had been asked this question during an interview. This interesting question is from Comparison of Core JavaScript versus Frameworks topic in section Caching, Debugging and Animation of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Right option is (d) Math.max(x,y) To elaborate: max function is used for comapring and finding maximum values. It is found in the math library. Math.max(x,y) is used to find the highest value of x and y.

Related questions

0 votes
    If a resistor Rx is connected between nodes X and Y, Ry between X and Y, Rz between Y and Z to form a ... Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
0 votes
    The transfer function of a system having the input as X(s) and output as Y(s) is? (a) Y(s)/X(s ... theory Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 16, 2021 in Education by JackTerrance
0 votes
    For the circuit shown in the figure below, the Norton Resistance looking into X-Y is __________ (a) 2 Ω (b) ... for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 20, 2021 in Education by JackTerrance
0 votes
    Let us assume x (t) = A cos(ωt + φ), What is the final steady state solution for y (t)? (a) A ... theory Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 16, 2021 in Education by JackTerrance
0 votes
    The three impedances Z1 = 20∠30⁰Ω, Z2 = 40∠60⁰Ω, Z3 = 10∠-90⁰Ω are delta-connected to a 400V, 3 - Ø ... Questions for GATE EC Exam, Network Theory MCQ (Multiple Choice Questions)...
asked Oct 17, 2021 in Education by JackTerrance
...