Skip to main content

Posts

HTML and CSS related interview questions

 HTML and CSS related interview questions 1. <div id="testid" class="test-class">Test CSS</div> #testid{ color:red; } .test-class{     color:blue !important; } What will be the color of  text "Test CSS"?
Recent posts

JavaScript Interview Questions

JavaScript Interview Questions: 1. Input: array=[3,4,5,6,7,8,9] Output: 4,5,6,7,8,9,10 2. var obj={name:"test"} Replace the the text of div with the value of  name key from an above JavaScript object. <div id="test">This is a text</div> 3. for(var i=0; i<3; i++){     setTimeout(() =>console.log(i) },2000); What it will print in console of the browser?

Keyboard shortcuts of Visual Studio Code for Windows

 Keyboard Shortcuts of Visual Studio Code for Windows: General Ctrl+Shift+P, F1    Show Command Palette Ctrl+P   Quick Open, Go to File… Ctrl+Shift+N   New window/instance Ctrl+Shift+W    Close window/instance Ctrl+,    User Settings Ctrl+K Ctrl+S    Keyboard Shortcuts Basic editing Ctrl+X    Cut line (empty selection) Ctrl+C   Copy line (empty selection) Alt+ ↑ / ↓   Move line up/down Shift+Alt + ↓ / ↑    Copy line up/donwn Ctrl+Shift+K   Delete line Ctrl+Enter   Insert line below Ctrl+Home   Go to beginning of file Ctrl+shift+Enter   Insert line above Ctrl+shift+\   Jump to matching bracket Ctrl+] / [   Indent/outdent line Home/End   Go to beginning/end of line Ctrl+End   G...

Check the password of an Wi-Fi connected to the PC or Laptop.

 Check the password of an Wi-Fi already connected to a PC or Laptop: To check password of Wi-Fi already connected to the PC or laptop, a user/you need to follow the below steps:- Step1: Firstly check the Wi-Fi symbol/net connectivity signal  on the taskbar and RightClick on it.                          Step2: Second click on the Open Network and Internet Settings.                                               Step 3: Next click on Network and sharing center.                         Step 4: Now click on the WiFi (connected wifi name).                          Step5 : Tap or select Security and click on the Show characte...

Find the index of a matching element from an array.

 Get the index of a matching element from an array: Method 1: using without any method (Original code)- let cars = ["BMW", "Volvo", "Mini"]; let element = 'Volvo'; for( let i= 0; i <= cars.length; i++){     if(cars[i] === element){         console.log(i);         return i;     } else {         console.log(-1);         return -1;     } } Output:  1 Method 2: using indexOf  method - let cars = ["BMW", "Volvo", "Mini"]; let element = 'Volvo';     if(cars.indexOf(element) == -1){         console.log("-1");     } else {          console.log(cars.indexOf(element));     } Output:  1 Method 3: using indexOf & includes  method - let cars = ["BMW", "Volvo", "Mini"]; let element = 'Volvo';     if(!cars.includes(element)){         console.log("-1");  ...

5 JavaScript Developer Interview questions asked by an game company

5 JavaScript Developer Interview questions asked by an game company: JS Developer Questions from a gaming company Questions:01. You need to show the length of each string Input: var x = "Hello I Am Great Developer"; Output: 5,1,2,5,9 Questions:02. You need to Find the next character of input string as output string Input: var x = "Hello World"; Output: "ifmmp xpsme" Questions:03. What will be the result of the below 2+"2"-"2" Questions:04. Check that the below number exists in finacci series or not. input:1000 Output:true or false Questions:05. Angram or Filtering words from a dictionary. Input: HAM,MAH,RAJU,AJUR,UJAR,YADAV,DAAVY; Output: HAM, MAH, (Anagram) AJUR, RAJU,UJAR YADAV,DAAVY Is this helpful to you?