skip navigation
skip mega-menu

DWP Digital JavaScript Coding Challenge: ‘JavaScript is Weird’

This event has now ended.
16 September 2021 11:00 - 11:30

Put your digital skills to the test with three mini coding challenges!

Join DWP Digital in this fun coding challenge for National Coding Week brought to you by one of our very own software developers Adam McKenna.


What’s the challenge?

Our challenge ‘JavaScript is Weird’ will test your skills through three mini-challenges that will highlight some of the peculiarities within JavaScript.

To view the final solutions, join us on Thursday 16th September at 1pm for a 30-minute session, where our Adam will guide you through solving the different challenges.

You can find the full challenges below. Time to get coding! Good luck.


For more information on DWP Digital:

Visit our DWP Digital Careers site today.

To keep up to date with us on the latest roles subscribe to the DWP Digital newsletter.

Do you love social media? Follow us on Twitter, LinkedIn and Instagram @DWPDigital.



JAVASCRIPT IS WEIRD

Challenge 1:

// Using only the characters 'a' and 'b', print 'banana' to the console.

// You can use any JavaScript methods.

// Hint: you will need `toLowerCase()`.


Challenge 2A:

// What is the result of the following operation:

// ["str1", "str2"] + [0,1,2]


Challenge 2B:

// How can you concatenate these arrays?


Challenge 3A:

// What is the value of x in the following operation:


// let x = [] == ![];

// x ||= 7;


Challenge 3B:

// By only adjusting the second line of code from the following block,

// and without explicitly assigning `x` a value,

// how can you make this code output 7?




Free
16 September 2021 11:00 - 11:30
Online

Explore Jobs

Software Engineer

Transforming the UK’s biggest digital servicesNow more than ever, our work is making a difference to millions of people. We’re finding new ways to use our technology, expertise and innovation to help those who need it most.We’re a digital organisation, where we put people first. That means putting users’ needs at the heart of everything we do. And changing how we work to transform and join up digital services for millions of people.Digital careers with challenge, opportunity and impactIf you like a challenge, you’ll feel at home with us. We’re a big organisation, with big opportunities, and we’re building a reputation for pushing the digital agenda in government.We’re learning and changing, and we need innovative, curious, and determined people to keep us moving forward. If you can rethink old approaches, and transform systems and services, there’s a place for you here.You’ll get to put your skills to the test, using technology and innovation to tackle some of the most complex and important problems you’ll ever face.Where every person mattersOur wide range of work requires a diverse mix of cultures, perspectives and ideas. For us to succeed, we need our people to be at their best and feel comfortable being themselves at work. Well-being is important to us.With our teams located across six different digital hubs, we’re offering more opportunities to work flexibly, when and where you want. And lots of us are working from home during the Covid-19 pandemic, with some of our teams located in our Covid-safe digital hubs.We’re becoming a place where talented people can grow and thrive at the cutting-edge of their industry. If you’re looking for a digital or technology job with lots of opportunity and real social impact, visit our Careers Site to find a stimulating and fulfilling career with us. Follow us on our socials to stay connectedBlogFacebookLinkedInTwitterInstagram Careers Site

DWP Digital
Test Engineer

Transforming the UK’s biggest digital servicesNow more than ever, our work is making a difference to millions of people. We’re finding new ways to use our technology, expertise and innovation to help those who need it most.We’re a digital organisation, where we put people first. That means putting users’ needs at the heart of everything we do. And changing how we work to transform and join up digital services for millions of people.Digital careers with challenge, opportunity and impactIf you like a challenge, you’ll feel at home with us. We’re a big organisation, with big opportunities, and we’re building a reputation for pushing the digital agenda in government.We’re learning and changing, and we need innovative, curious, and determined people to keep us moving forward. If you can rethink old approaches, and transform systems and services, there’s a place for you here.You’ll get to put your skills to the test, using technology and innovation to tackle some of the most complex and important problems you’ll ever face.Where every person mattersOur wide range of work requires a diverse mix of cultures, perspectives and ideas. For us to succeed, we need our people to be at their best and feel comfortable being themselves at work. Well-being is important to us.With our teams located across six different digital hubs, we’re offering more opportunities to work flexibly, when and where you want. And lots of us are working from home during the Covid-19 pandemic, with some of our teams located in our Covid-safe digital hubs.We’re becoming a place where talented people can grow and thrive at the cutting-edge of their industry. If you’re looking for a digital or technology job with lots of opportunity and real social impact, visit our Careers Site to find a stimulating and fulfilling career with us. Follow us on our socials to stay connectedBlogFacebookLinkedInTwitterInstagram Careers Site

DWP Digital
Product Manager

Transforming the UK’s biggest digital servicesNow more than ever, our work is making a difference to millions of people. We’re finding new ways to use our technology, expertise and innovation to help those who need it most.We’re a digital organisation, where we put people first. That means putting users’ needs at the heart of everything we do. And changing how we work to transform and join up digital services for millions of people.Digital careers with challenge, opportunity and impactIf you like a challenge, you’ll feel at home with us. We’re a big organisation, with big opportunities, and we’re building a reputation for pushing the digital agenda in government.We’re learning and changing, and we need innovative, curious, and determined people to keep us moving forward. If you can rethink old approaches, and transform systems and services, there’s a place for you here.You’ll get to put your skills to the test, using technology and innovation to tackle some of the most complex and important problems you’ll ever face.Where every person mattersOur wide range of work requires a diverse mix of cultures, perspectives and ideas. For us to succeed, we need our people to be at their best and feel comfortable being themselves at work. Well-being is important to us.With our teams located across six different digital hubs, we’re offering more opportunities to work flexibly, when and where you want. And lots of us are working from home during the Covid-19 pandemic, with some of our teams located in our Covid-safe digital hubs.We’re becoming a place where talented people can grow and thrive at the cutting-edge of their industry. If you’re looking for a digital or technology job with lots of opportunity and real social impact, visit our Careers Site to find a stimulating and fulfilling career with us. Follow us on our socials to stay connectedBlogFacebookLinkedInTwitterInstagram Careers Site

DWP Digital
DevOps Engineer

Transforming the UK’s biggest digital servicesNow more than ever, our work is making a difference to millions of people. We’re finding new ways to use our technology, expertise and innovation to help those who need it most.We’re a digital organisation, where we put people first. That means putting users’ needs at the heart of everything we do. And changing how we work to transform and join up digital services for millions of people.Digital careers with challenge, opportunity and impactIf you like a challenge, you’ll feel at home with us. We’re a big organisation, with big opportunities, and we’re building a reputation for pushing the digital agenda in government.We’re learning and changing, and we need innovative, curious, and determined people to keep us moving forward. If you can rethink old approaches, and transform systems and services, there’s a place for you here.You’ll get to put your skills to the test, using technology and innovation to tackle some of the most complex and important problems you’ll ever face.Where every person mattersOur wide range of work requires a diverse mix of cultures, perspectives and ideas. For us to succeed, we need our people to be at their best and feel comfortable being themselves at work. Well-being is important to us.With our teams located across six different digital hubs, we’re offering more opportunities to work flexibly, when and where you want. And lots of us are working from home during the Covid-19 pandemic, with some of our teams located in our Covid-safe digital hubs.We’re becoming a place where talented people can grow and thrive at the cutting-edge of their industry. If you’re looking for a digital or technology job with lots of opportunity and real social impact, visit our Careers Site to find a stimulating and fulfilling career with us. Follow us on our socials to stay connectedBlogFacebookLinkedInTwitterInstagram Careers Site

DWP Digital

Subscribe to our newsletter

Sign up here