CHALLENGE
Find the output :
const teams = [
{ name: 'Warriors', players: ['Curry', 'Thompson'] },
{ name: 'Lakers', players: ['James', 'Davis'] }
];
const newTeams = JSON.parse(JSON.stringify(teams));
newTeams[0].players.push('Green');
const shallowCopy = [...teams];
shallowCopy[1].name = 'Clippers';
const freezeTest = Object.freeze({nested: {value: 42}});
freezeTest.nested.value = 100;
console.log(teams[1].name, teams[0].players.length, freezeTest.nested.value);
Find the output :
Forwarded from @Rustam-Zβ‘οΈ
Sundar Pichai: CEO of Google and Alphabet
https://www.youtube.com/watch?v=9V6tWC4CdFQ
8:27 Advice for young people
10:09 Styles of leadership
14:29 Impact of AI in human history
26:39 Veo 3 and future of video
34:24 Scaling laws
38:09 AGI and ASI
44:33 P(doom)
51:24 Toughest leadership decisions
1:02:32 AI mode vs Google Search
1:15:22 Google Chrome
1:30:52 Programming
1:37:37 Android
1:42:49 Questions for AGI
1:48:05 Future of humanity
https://www.youtube.com/watch?v=9V6tWC4CdFQ
8:27 Advice for young people
10:09 Styles of leadership
14:29 Impact of AI in human history
26:39 Veo 3 and future of video
34:24 Scaling laws
38:09 AGI and ASI
44:33 P(doom)
51:24 Toughest leadership decisions
1:02:32 AI mode vs Google Search
1:15:22 Google Chrome
1:30:52 Programming
1:37:37 Android
1:42:49 Questions for AGI
1:48:05 Future of humanity
YouTube
Sundar Pichai: CEO of Google and Alphabet | Lex Fridman Podcast #471
Sundar Pichai is CEO of Google and Alphabet.
Thank you for listening β€ Check out our sponsors: https://lexfridman.com/sponsors/ep471-sb
See below for timestamps, transcript, and to give feedback, submit questions, contact Lex, etc.
*Transcript:*
https:/β¦
Thank you for listening β€ Check out our sponsors: https://lexfridman.com/sponsors/ep471-sb
See below for timestamps, transcript, and to give feedback, submit questions, contact Lex, etc.
*Transcript:*
https:/β¦
return (
<div>
<Thumbnail video={video} />
<a href={video.url}>
<h3>{video.title}</h3>
<p>{video.description}</p>
</a>
<LikeButton video={video} />
</div>
);
}
React Start
Please open Telegram to view this post
VIEW IN TELEGRAM
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script crossorigin src="https://unpkg.com/react@18/umd/react.development.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<title>React-1</title>
<style>
.container {
max-width: 1140px;
width: 100%;
margin: 0 auto;
padding: 0 15px;
text-align: center;
font-size: 24px;
}
button {
margin: 10px;
padding: 10px 20px;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
function App() {
const [count, setCount] = React.useState(0);
return (
<div className="container">
<h1>Count: {count}</h1>
<button onClick={() => setCount(count - 1)}>-</button>
<button onClick={() => setCount(count + 1)}>+</button>
</div>
);
}
const app = document.getElementById("root");
const root = ReactDOM.createRoot(app);
root.render(<App />);
</script>
</body>
</html>
React counter
This media is not supported in your browser
VIEW IN TELEGRAM
But I wishπ
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from πΆπππππ π€ππ‘β ππ’βππ
Mashina qulflanib qolsa: qarisndoshlarim π‘
dasturchisanku och mashinani (iloji bosikan terminalda ochardim)
Jinni xonani nomerini berila ketaman man π
dasturchisanku och mashinani (iloji bosikan terminalda ochardim)
Jinni xonani nomerini berila ketaman man π
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Wieder lernen wir deutsch zum B2 Zertifikatπ©πͺ
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Learn React and NextJs
Performance bottlenecks in React often come from unnecessary re-renders and poor state management. Hereβs a straightforward guide to optimizing your React apps.
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Learn React and NextJs
π
What is Vite?
A modern frontend build tool that has quickly gained traction among developers for its remarkable speed and simplicity. Created by Evan You, the developer behind Vue.js, Vite optimizes the development experience by focusing on two primary goals:
- Fast Development: Vite provides instant server start and blazing-fast Hot Module Replacement (HMR) for a smoother development workflow.
- Optimized Production Builds: With native support for ES modules and efficient bundling through Rollup, Vite ensures that production builds are lean and performant.
A modern frontend build tool that has quickly gained traction among developers for its remarkable speed and simplicity. Created by Evan You, the developer behind Vue.js, Vite optimizes the development experience by focusing on two primary goals:
- Fast Development: Vite provides instant server start and blazing-fast Hot Module Replacement (HMR) for a smoother development workflow.
- Optimized Production Builds: With native support for ES modules and efficient bundling through Rollup, Vite ensures that production builds are lean and performant.