Skip to content

Commit 4b8f29b

Browse files
authored
Update 100_JS_Que
1 parent 9488565 commit 4b8f29b

1 file changed

Lines changed: 33 additions & 3 deletions

File tree

100Questions/100_JS_Que

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,39 @@ console.log(a === b); //true
229229
console.log(a == b); //true
230230
//Explaination : Doble code and backticks both are same.
231231
--------------------------------------------------------------------------
232-
233-
234-
232+
let a =1;
233+
let c =2;
234+
console.log(--c === a); //true
235+
//Explaination : --c will be 1 so thats why true.
236+
--------------------------------------------------------------------------
237+
let a =1;
238+
let b =1;
239+
let c =2;
240+
console.log(a === b === -c); //false
241+
//Explaination : a===b gives True. true === -c(number) gives false.
242+
---------------------------------------------------------------------------
243+
console.log(3*3); //9
244+
console.log(3**3); //27
245+
//console.log(3***3); //error
246+
//Explaination : *** doesn't exist in js.
247+
----------------------------------------------------------------------------
248+
console.log(a); //undefined
249+
var a;
250+
//Explaination : We can use VAR variable before its declaration. We didn't assign any value but still by default "undefined" will be store in it.undefined means declared but value didn't initialised.
251+
-----------------------------------------------------------------------------
252+
console.log(a); //not defined
253+
//Explaination : Not defined means variable didn't even declared.Also value is not assogned.
254+
-----------------------------------------------------------------------------
255+
console.log([[[]]]); //[[[]]]
256+
//Explaination : It will print the nested array. We will get 3 nested array and each one have 1 element but at the last array will be empty.
257+
------------------------------------------------------------------------------
258+
How to find Operating system name?
259+
navigator.plateform we can use it. //win32
260+
-------------------------------------------------------------------------------
261+
let for = 100; //Error
262+
//Explaination : For is a reserved keyword.
263+
-------------------------------------------------------------------------------
264+
Que: 51
235265

236266

237267

0 commit comments

Comments
 (0)