codebypc
2.09K subscribers
210 photos
59 videos
160 files
250 links
Html, css3, javascript, reactjs, express, Fullstack, backend, Bootstrap, mongodb
Download Telegram
πŸ‘1πŸ‘1
html codeπŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Table with Cell Dividers and Rounded Corners</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<div class="table-container">
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Row 1, Cell 1</td>
<td>Row 1, Cell 2</td>
<td>Row 1, Cell 3</td>
</tr>
<tr>
<td>Row 2, Cell 1</td>
<td>Row 2, Cell 2</td>
<td>Row 2, Cell 3</td>
</tr>
</tbody>
</table>
</div>
</body>

</html>
πŸ‘1πŸ”₯1
CSS codeπŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.table-container {
overflow: hidden;
border-radius: 10px; /* Rounded corners */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

table {
width: 100%;
border-collapse: collapse; /* Ensures borders are merged */
}

th,
td {
padding: 12px;
text-align: left;
border: 1px solid #ddd; /* Divider for each cell */
}

th {
background-color: #f4f4f4;
font-weight: bold;
}
πŸ‘1πŸ”₯1πŸ‘1
πŸ‘3πŸ”₯1
image.png
117 KB
What are Arithmetic Operators in JavaScript.
πŸ”₯1πŸ₯°1
50 questions.pdf
226.5 KB
From basics to advanced, these 50 JavaScript interview questions cover it all!
πŸ‘1
❀1πŸ‘1
Q.139 What is eval?
Ans-
β€’ eval() is a function in many programming languages, including JavaScript.
β€’ It’s short for evaluate and takes a string as an argument and executes it as if it were actual code.

For example-

let x = 10;
let y = 20;
let result = eval('x + y');
console.log(result); // This will output 30



However, eval() can be risky if it’s used with arbitrary or untrusted strings because it can execute any code passed into it, potentially leading to security vulnerabilities or unexpected behavior.
In general, It’s recommended to avoid using eval() whenever possible, especially with user generated input.
πŸ‘1
πŸ‘1
How to write HTML code dynamically using JavaScript?
Q.264 What is appendChild method in JavaScript.pdf
18.5 KB
𝐚𝐩𝐩𝐞𝐧𝐝 𝐜𝐑𝐒π₯𝐝 𝐦𝐞𝐭𝐑𝐨𝐝 𝐒𝐧 π‰πšπ―πšπ’πœπ«π’π©π­
200 fullstack web development interview questionsπŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»πŸ‘‡πŸ»