Vandana
Vandana
KPCKevin Powell - Community
Created by Vandana on 7/11/2024 in #front-end
Arrays
Consider an example
const myArray = [1,'hi',true,{name:'socks'},[1,2]]
console.log(type of([1,2])) //object
console.log(myArray.isArray[1,2])//true
const myArray = [1,'hi',true,{name:'socks'},[1,2]]
console.log(type of([1,2])) //object
console.log(myArray.isArray[1,2])//true
What is the difference here in typeof and isArray can anyone pls help.
11 replies
KPCKevin Powell - Community
Created by Vandana on 7/1/2024 in #front-end
Object Conversions
Can anyone pls explain in brief what are the important and necessary object to primitive conversions in brief. or object conversions with egs
16 replies
KPCKevin Powell - Community
Created by Vandana on 6/28/2024 in #front-end
Const objects can be modified
can anyone pls make me understand what is happening under the hood?
77 replies
KPCKevin Powell - Community
Created by Vandana on 6/27/2024 in #front-end
eval()
Why eval js inbuilt function is not recommended to use ??
105 replies
KPCKevin Powell - Community
Created by Vandana on 6/27/2024 in #front-end
variables inside the function and order of Precedence in JS
The variable fahrenheit has function scope i understand but it is still not declared (as a let or const )but works why so?? function convertToFahrenheit(celsius) { fahrenheit = (celsius*9/5)+32; return fahrenheit; } console.log(convertToFahrenheit(25));
76 replies
KPCKevin Powell - Community
Created by Vandana on 6/24/2024 in #front-end
Math.round()
Steps to reproduce: 1]Cost of item1:$20.95 Cost of item2:$7.99 Cost of item3:$18.99 Cost of Shipping:$4.99 Tax:10% Calculating the total cost i am using cents and then converting back to dollars :Math.round((2095+799+1899+499).1)/100=5.29 but this gives a different answer Math.round((2095+799+1899+499).1/100)=5 Can anyone explain what effects the outer bracket of Math.round ??
12 replies
KPCKevin Powell - Community
Created by Vandana on 6/23/2024 in #front-end
trusted HTML Element
Steps to reproduce: 1]As soon as i open the google chrome search engine ,and open a new tab and then open console to type document.body.innerHTML = 'hEY' it gives me an error stating This document requires 'TrustedHTML' assignment. 2]But then the same process when i open the new tab and in the URL I type google.com and open the console and type document.body.innerHTML = 'hEY' there is no such error . Could anyone have any idea about this.
17 replies
KPCKevin Powell - Community
Created by Vandana on 6/21/2024 in #front-end
vertical centering
i am always getting stuck to align vertically at the center of the page,can anyone figure out to make it responsive https://codepen.io/kvandana451/pen/yLWKEjg
32 replies
KPCKevin Powell - Community
Created by Vandana on 6/12/2024 in #front-end
small space left at the bottom for the img
No description
16 replies
KPCKevin Powell - Community
Created by Vandana on 6/11/2024 in #front-end
How to make images responsive using srcset and size attribute??
I have tried using srcset but it isnt working the demo link line 37 https://github.com/kvandana451/Assorted-Cards-images/blob/main/index.html
453 replies
KPCKevin Powell - Community
Created by Vandana on 6/11/2024 in #os-and-tools
Emmet Autocomplete for srcset atrribute
Steps to reproduce: Position your cursor inside the " " for srcset & type a /. You cannot use autocomplete to easily enter in the path to the image you wish, e.g., /images/img1.webp. You have to manually type out the path. This is a problem. Autocomplete should work in both src AND in srcset.
6 replies
KPCKevin Powell - Community
Created by Vandana on 6/10/2024 in #front-end
vertical alignment for an element in the middle
Can anyone help me out to center vertically in the middle as i always fail to achieve this.(min-height is given in the requirement) https://codepen.io/kvandana451/pen/pomWzgK
88 replies
KPCKevin Powell - Community
Created by Vandana on 6/9/2024 in #front-end
Images format
Can we still have a mix of webp and jpeg images ?
160 replies
KPCKevin Powell - Community
Created by Vandana on 6/9/2024 in #front-end
clamp()
can we use font-size: clamp(0.9rem, 1rem, 2.2rem);? but the syntax says font-size: clamp(0.9rem, 1vw, 2.2rem);
15 replies
KPCKevin Powell - Community
Created by Vandana on 6/6/2024 in #front-end
grid
No description
47 replies
KPCKevin Powell - Community
Created by Vandana on 6/1/2024 in #front-end
Nested grid
can we remove the nested grid out from its grid to its parent grid ?
15 replies
KPCKevin Powell - Community
Created by Vandana on 6/1/2024 in #front-end
Max-width child should be aligned at the center
No description
6 replies