*
Previous JavaScript question answers 121-140 JavaScript question answers 161-180 Next

JavaScript Question Answers - 161-180

141. Which method returns the number with the highest value

Math.max(x, y, ...)

142. Which property returns the largest number possible in JavaScript

Number.MAX_VALUE

143. Which method returns the number with the lowest value

Math.min(x, y, ...)

144. Which property returns the smallest number possible in JavaScript

Number.MIN_VALUE

145. Which method moves a window relative to its current position

window.moveBy(x, y)

146. Which method moves a window to the specified position

window.moveTo(x, y)

147. Which method sets or returns the name of a window

window.name

148. Which property represents a "Not-a-Number" value

NaN

149. Which method returns the Navigator object for the window

window.navigator

150. Which property represents negative infinity (returned on overflow)

Number.NEGATIVE_INFINITY

151. Who Developed JavaScript?

Netscape developed JavaScript in 1995.

152. What are JavaScript types?

- Primitive: Number, String, Boolean, Undefined, Null, Symbol, BigInt
- Non-primitive: Object

153. How do you assign object properties?

Example: obj.name = "John"; or obj["age"] = 30;

154. Which method Opens a new browser window

window.open("url","name","features")

155. Which method returns a reference to the window that created the window

window.opener

156. Which method returns the outer height of a window, including toolbars/scrollbars

window.outerHeight

157. Which method returns the outer width of a window, including toolbars/scrollbars

window.outerWidth

158. Which method returns the pixels the current document has been scrolled (horizontally) from the upper left corner of the window

window.scrollX or window.pageXOffset

159. Which method returns the pixels the current document has been scrolled (vertically) from the upper left corner of the window

window.scrollY or window.pageYOffset

160. Which method returns the parent window of the current window

window.parent

Back to Index
Previous JavaScript question answers 121-140 JavaScript question answers 161-180 Next
*
*