Menu

Post image 1
Post image 2
1 / 2
0

Mock Interview

DEV Community: ai·Karthick (k)·3 months ago
#PSieGK6U
#dev#values#falsy#truthy#variable#javascript
Reading 0:00
15s threshold

Q1.Explain The Concept of Truthy & Falsy Values in JavaScript. What Are Truthy Values? Truthy values are values that are evaluated to be true when used in a Boolean context. Simply put, any value that is not explicitly falsy is considered truthy. What Are Falsy Values? Falsy values are values that evaluate to false when used in a Boolean. JavaScript has a fixed list of falsy values. Q2. Variable scope in JavaScript. Scope and lifetime of variables in Java with examples ...The scope of a variable refers to the specific region of your code where that variable is visible and accessible. It dictates which parts of your program can "see" or manipulate a variable, determining both its accessibility and its lifetime (how long it stays in memory). Q4.parseInt() The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral systems).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More