Write a JavaScript program to determine whether a given year is a leap year in the Gregorian calendar.
<script>
year = window.prompt("Input a Year : ");
x = (year % 100 === 0) ? (year % 400 === 0) : (year % 4 === 0);
console.log(x);
</script>
<script>
year = window.prompt("Input a Year : ");
x = (year % 100 === 0) ? (year % 400 === 0) : (year % 4 === 0);
console.log(x);
</script>
ββTips For Being A Great Programmer:
1. Get good at Googling
Being a programmer is all about learning how to search for the answers to your questions. By learning to Google things effectively, you'll save a lot of development time.
2. Under promise and over deliver
It's better to let your team know a task will take three weeks and deliver in two than the other way around. By under promising and over delivering, you'll build trust.
3. Be nice to your designers; they're your friends
Designers provide solutions to user pain points. Learn from them and work cohesively to build effective products.
4. Write useful comments
Write comments which explain the "why" and not the "what".
5. Name variables and functions appropriately
Functions and variables should accurately denote their purpose, so myCoolFunction won't fly.
6. Take vacations
We all need time to de-compress. Take that trip you've been wanting. Your brain and your co-workers will thank you.
7. Delete unused code
No reason to accrue more technical debt.
8. Learn to read code
Reading code is an undervalued skill, but an invaluable one.
9. Establish a healthy work/life balance
You need time to de-compress after a long workday. Shut off work notifications, remove apps off your phone.
10. Only schedule necessary meetings
Can it be solved in an email or a Slack message? If so, avoid a meeting. If not, be conscious of the duration. Aim for less.
11. Pair program
Pair programming allows you to play the role of both teacher and student.
12. Write great emails
Learn to capture your audience in your emails by being succinct yet clear. Nobody wants to read your four-page email Jerry.
13. Get involved in the community
Surrounding yourself with like-minded people will motivate you to push through the lows.
14. Clean up your branches
Clean up your version control branches like you'd clean your house before your in-laws came for a visit. If you don't need it, discard it; don't just throw it in the closet.
15. Don't gate keep
Be inclusive. Don't tell others they aren't good enough to be in the industry. Everyone has value.
16. Keep learning
You've chosen a profession that requires continuous learning. Learn to love it.
17. Don't give up
It won't always be easy. But we all started at the same place. You can do it.
18. Take tasks that scare you
If it doesn't scare you, it isn't going to help you grow.
19. Clarify requirements before starting
You should understand the acceptance criteria before delving into writing the code. It will save you time and pain later down the line.
20. Have a toolbox
Have a set of tools which you know inside-and-out. Know which tools serve which purpose and when a project can benefit from using one over another.
1. Get good at Googling
Being a programmer is all about learning how to search for the answers to your questions. By learning to Google things effectively, you'll save a lot of development time.
2. Under promise and over deliver
It's better to let your team know a task will take three weeks and deliver in two than the other way around. By under promising and over delivering, you'll build trust.
3. Be nice to your designers; they're your friends
Designers provide solutions to user pain points. Learn from them and work cohesively to build effective products.
4. Write useful comments
Write comments which explain the "why" and not the "what".
5. Name variables and functions appropriately
Functions and variables should accurately denote their purpose, so myCoolFunction won't fly.
6. Take vacations
We all need time to de-compress. Take that trip you've been wanting. Your brain and your co-workers will thank you.
7. Delete unused code
No reason to accrue more technical debt.
8. Learn to read code
Reading code is an undervalued skill, but an invaluable one.
9. Establish a healthy work/life balance
You need time to de-compress after a long workday. Shut off work notifications, remove apps off your phone.
10. Only schedule necessary meetings
Can it be solved in an email or a Slack message? If so, avoid a meeting. If not, be conscious of the duration. Aim for less.
11. Pair program
Pair programming allows you to play the role of both teacher and student.
12. Write great emails
Learn to capture your audience in your emails by being succinct yet clear. Nobody wants to read your four-page email Jerry.
13. Get involved in the community
Surrounding yourself with like-minded people will motivate you to push through the lows.
14. Clean up your branches
Clean up your version control branches like you'd clean your house before your in-laws came for a visit. If you don't need it, discard it; don't just throw it in the closet.
15. Don't gate keep
Be inclusive. Don't tell others they aren't good enough to be in the industry. Everyone has value.
16. Keep learning
You've chosen a profession that requires continuous learning. Learn to love it.
17. Don't give up
It won't always be easy. But we all started at the same place. You can do it.
18. Take tasks that scare you
If it doesn't scare you, it isn't going to help you grow.
19. Clarify requirements before starting
You should understand the acceptance criteria before delving into writing the code. It will save you time and pain later down the line.
20. Have a toolbox
Have a set of tools which you know inside-and-out. Know which tools serve which purpose and when a project can benefit from using one over another.
Elegantly Manage SVG Icons in Angular Applications
svg-icon is a small library that offers a solution to a big problem: How to incorporate svgs into your templates in an orderly and efficient way. - http://amp.gs/wFAp
#angular
svg-icon is a small library that offers a solution to a big problem: How to incorporate svgs into your templates in an orderly and efficient way. - http://amp.gs/wFAp
#angular
Medium
Elegantly Manage SVG Icons in Angular Applications
svg-icon is a small library that offers a solution to a big problem: How to incorporate svgs into your templates in an orderly andβ¦
11. Write a JavaScript program to find which 1st January is being a Sunday between 2014 and 2050.
<script>
console.log('--------------------');
for (var year = 2014; year <= 2050; year++)
{
var d = new Date(year, 0, 1);
if ( d.getDay() === 0 )
console.log("1st January is being a Sunday "+year);
}
console.log('--------------------');
</script>
<script>
console.log('--------------------');
for (var year = 2014; year <= 2050; year++)
{
var d = new Date(year, 0, 1);
if ( d.getDay() === 0 )
console.log("1st January is being a Sunday "+year);
}
console.log('--------------------');
</script>
Animated Bubble Effect Button On Hover.zip
1.2 KB
Source Code File
A Deep Dive Into Queues in Node.js
Find out what queueing in Node is all about, including how it works with the event loop, its various types, and how it can help with async operations. - http://amp.gs/woCC
#nodejs
Find out what queueing in Node is all about, including how it works with the event loop, its various types, and how it can help with async operations. - http://amp.gs/woCC
#nodejs
LogRocket Blog
A deep dive into queues in Node.js - LogRocket Blog
Find out what queueing in Node.js is all about. Learn how it works with the event loop, its various types, and how it can help with async operations.
1. Java Programming: Complete Beginner to Advanced
https://www.udemy.com/course/java-programming-complete-beginner-to-advanced/?couponCode=8FFA466895
2. Blender 2.79 Illustration . Easy Modeling for Beginners
https://www.udemy.com/course/easy-3d-illustration-with-blender-3d-modeling-for-beginners/
3. Blockchain Web Development on Ethereum [2020]
https://www.udemy.com/course/complete-blockchain-web-application-course-on-ethereum/?couponCode=F1C4FBFE4C02DA692D31
4. Build An MP3 Player With Python And TKinter GUI Apps
https://www.udemy.com/course/build-an-mp3-player-with-python-and-tkinter-gui-apps/?couponCode=FREETODAY
5. Learn Android App development from scratch with Java
https://www.udemy.com/course/learn-android-app-development-from-scratch-with-java/?couponCode=BC4BE14F2ED1140B7C3C
6. Adobe Photoshop CC 2020 - Become a Super User - 10 Projects
https://www.udemy.com/course/learn-basic-photoshop/?couponCode=TRY10FREE80
7. Analytical Techniques for Business Analysis (IIBA - ECBA)
https://www.udemy.com/course/analytical-techniques-for-business-analysis-iiba-ecba/?couponCode=7DA3D48577D9EC2E1B93
8. Git & GitHub Crash Course: Letβs GIT it on Git Hub(Search UdemyFree4You)
https://www.udemy.com/course/git-and-github-crash-course/?couponCode=NEW_COURSE2
9. Learn the Art of Massage
https://www.udemy.com/course/learn-the-art-of-massage/?couponCode=FE9A56BAF40216944FA8
10. Projects Cost Management, Estimating, Budgeting and Control.
https://www.udemy.com/course/cost-management/?couponCode=20200727
11. Mastering COLREGs | Marine navigation rules
https://www.udemy.com/course/mastering-colregs-marine-navigation-rules/?couponCode=COLREGJULY
12. Shopify guide: The complete shopify store creation course
https://www.udemy.com/course/the-complete-shopify-store-creation-course/?couponCode=6658F8F2151CA2AAC71F
13. After Effects Expressions KickStart course (2020)
https://www.udemy.com/course/after-effects-expressions-kickstart-course/?couponCode=6895712D316CF5246BAE
14. Learn 39 Different Ways to Make Money Online!
https://www.udemy.com/course/learn-to-make-money-online/?couponCode=61860A7F52C79BE54DA4
15. Supply Chain Analytics
https://www.udemy.com/course/supply-chain-analytics/?couponCode=SUPPLY
https://www.udemy.com/course/java-programming-complete-beginner-to-advanced/?couponCode=8FFA466895
2. Blender 2.79 Illustration . Easy Modeling for Beginners
https://www.udemy.com/course/easy-3d-illustration-with-blender-3d-modeling-for-beginners/
3. Blockchain Web Development on Ethereum [2020]
https://www.udemy.com/course/complete-blockchain-web-application-course-on-ethereum/?couponCode=F1C4FBFE4C02DA692D31
4. Build An MP3 Player With Python And TKinter GUI Apps
https://www.udemy.com/course/build-an-mp3-player-with-python-and-tkinter-gui-apps/?couponCode=FREETODAY
5. Learn Android App development from scratch with Java
https://www.udemy.com/course/learn-android-app-development-from-scratch-with-java/?couponCode=BC4BE14F2ED1140B7C3C
6. Adobe Photoshop CC 2020 - Become a Super User - 10 Projects
https://www.udemy.com/course/learn-basic-photoshop/?couponCode=TRY10FREE80
7. Analytical Techniques for Business Analysis (IIBA - ECBA)
https://www.udemy.com/course/analytical-techniques-for-business-analysis-iiba-ecba/?couponCode=7DA3D48577D9EC2E1B93
8. Git & GitHub Crash Course: Letβs GIT it on Git Hub(Search UdemyFree4You)
https://www.udemy.com/course/git-and-github-crash-course/?couponCode=NEW_COURSE2
9. Learn the Art of Massage
https://www.udemy.com/course/learn-the-art-of-massage/?couponCode=FE9A56BAF40216944FA8
10. Projects Cost Management, Estimating, Budgeting and Control.
https://www.udemy.com/course/cost-management/?couponCode=20200727
11. Mastering COLREGs | Marine navigation rules
https://www.udemy.com/course/mastering-colregs-marine-navigation-rules/?couponCode=COLREGJULY
12. Shopify guide: The complete shopify store creation course
https://www.udemy.com/course/the-complete-shopify-store-creation-course/?couponCode=6658F8F2151CA2AAC71F
13. After Effects Expressions KickStart course (2020)
https://www.udemy.com/course/after-effects-expressions-kickstart-course/?couponCode=6895712D316CF5246BAE
14. Learn 39 Different Ways to Make Money Online!
https://www.udemy.com/course/learn-to-make-money-online/?couponCode=61860A7F52C79BE54DA4
15. Supply Chain Analytics
https://www.udemy.com/course/supply-chain-analytics/?couponCode=SUPPLY
Udemy
Java Programming for Complete Beginners
Learn Core Java Skills including the lastest version of Java
Ways to Create Components in React
We can always relate to any sort of analogy that involves LEGO. Components are like LEGO blocks. Now it all makes sense. That said, just as not all LEGO blocks are created equal, neither are components. Hereβs a clear, concise differentiation between Class and Functional components in React. - http://amp.gs/w5n3
#react
We can always relate to any sort of analogy that involves LEGO. Components are like LEGO blocks. Now it all makes sense. That said, just as not all LEGO blocks are created equal, neither are components. Hereβs a clear, concise differentiation between Class and Functional components in React. - http://amp.gs/w5n3
#react
Medium
Ways to Create Components in ReactJs.
According to official react documentation, a component is defined as:
Write a JavaScript program to check if two numbers are in range 40..60 or in the range 70..100 inclusive.
function numbers_ranges(x, y) {
if ((x >= 40 && x <= 60 && y >= 40 && y <= 60)
||
(x >= 70 && x <= 100 && y >= 70 && y <= 100))
{
return true;
}
else
{
return false;
}
}
console.log(numbers_ranges(44, 56));
console.log(numbers_ranges(70, 95));
console.log(numbers_ranges(50, 89));
function numbers_ranges(x, y) {
if ((x >= 40 && x <= 60 && y >= 40 && y <= 60)
||
(x >= 70 && x <= 100 && y >= 70 && y <= 100))
{
return true;
}
else
{
return false;
}
}
console.log(numbers_ranges(44, 56));
console.log(numbers_ranges(70, 95));
console.log(numbers_ranges(50, 89));
How to Dynamically Get All CSS Custom Properties on a Page
Some fun DOM and stylesheet wrangling on display here. - http://amp.gs/wbkO
Some fun DOM and stylesheet wrangling on display here. - http://amp.gs/wbkO
CSS-Tricks
How to Get All Custom Properties on a Page in JavaScript | CSS-Tricks
We can use JavaScript to get the value of a CSS custom property. Robin wrote up a detailed explanation about this in Get a CSS Custom Property Value with