DEV Community

Cover image for Menyelesaikan soal "Solve Me First" di HackerRank
Aris アリス
Aris アリス

Posted on

4 2

Menyelesaikan soal "Solve Me First" di HackerRank

Soal

Pada soal di atas kita diminta untuk membuat fungsi yang digunakan untuk menghitung jumlah 2 bilangan bulat. Kali ini saya akan membagikan cara saya menyelesaikan soal tersebut menggunakan bahasa pemrograman javascript. Berikut kode pemrogramannya:

function solveMeFirst(a, b) {
    return a + b;
}
Enter fullscreen mode Exit fullscreen mode

Sangat mudah bukan?

Demikian yang bisa saya bagikan, apabila ada yang perlu dikoreksi atau Anda punya cara lain untuk menyelesaikan soal di atas silahkan share di kolom komentar. 😁

Top comments (0)

Visualizing Promises and Async/Await 🤯

async await

Learn the ins and outs of Promises and Async/Await!

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️