edabit专题

0062【Edabit ★☆☆☆☆☆】Arrow Functions

0062【Edabit ★☆☆☆☆☆】Arrow Functions closures higher_order_functions language_fundamentals logic Instructions In the Code tab you will find code that is missing a single character in order to pass t

0059【Edabit ★☆☆☆☆☆】【是否被允许喝酒】Drinks Allowed?

0059【Edabit ★☆☆☆☆☆】【是否被允许喝酒】Drinks Allowed? conditions language_fundamentals logic validation Instructions A bartender is writing a simple program to determine whether he should serve drinks to so

0061【Edabit ★☆☆☆☆☆】【字符串模板:格式化1】Format I: Template String

0061【Edabit ★☆☆☆☆☆】【字符串模板:格式化1】Format I: Template String language_fundamentals strings Instructions Write a template string according to the following example: Examples const a = "John";const

0055【Edabit ★☆☆☆☆☆】【弧度转角度】Radians to Degrees

0055【Edabit ★☆☆☆☆☆】【弧度转角度】Radians to Degrees logic math numbers Instructions Create a function that takes an angle in radians and returns the corresponding angle in degrees. Examples radiansTo

0049【Edabit ★☆☆☆☆☆】【修改Bug代码】Buggy Code

0049【Edabit ★☆☆☆☆☆】【修改Bug代码】Buggy Code bugs language_fundamentals Instructions The challenge is to try and fix this buggy code, given the inputs true and false. See the examples below for the expe

0051【Edabit ★☆☆☆☆☆】【解析表达式】Solve the Equation

0051【Edabit ★☆☆☆☆☆】【解析表达式】Solve the Equation language_fundamentals math Instructions Create a function that takes an equation (e.g. "1+1"), and returns the answer. Examples equation("1+1") //

0053【Edabit ★☆☆☆☆☆】【计算投票】Upvotes vs Downvotes

0053【Edabit ★☆☆☆☆☆】【计算投票】Upvotes vs Downvotes arrays language_fundamentals numbers objects Instructions Given an object containing counts of both upvotes and downvotes, return what vote count shou

0046【Edabit ★☆☆☆☆☆】【长方形面积】Area of a Rectangle

0046【Edabit ★☆☆☆☆☆】【长方形面积】Area of a Rectangle algebra geometry math Instructions Create a function that calculates the area of a rectangle. If the arguments are invalid, your function must return

0048【Edabit ★☆☆☆☆☆】【字符串拼接】Concatenate First and Last Name into One String

0048【Edabit ★☆☆☆☆☆】【字符串拼接】Concatenate First and Last Name into One String formatting language_fundamentals strings Instructions Given two strings, firstName and lastName, return a single string in

0047【Edabit ★☆☆☆☆☆】Minimal I: If Boolean Then Boolean

0047【Edabit ★☆☆☆☆☆】Minimal I: If Boolean Then Boolean conditions language_fundamentals logic validation Instructions In this series we’re going to see common redundancies and superfluities that ma

0045【Edabit ★☆☆☆☆☆】【字符数转整型】Return a String as an Integer

0045【Edabit ★☆☆☆☆☆】【字符数转整型】Return a String as an Integer language_fundamentals numbers strings Instructions Create a function that takes a string and returns it as an integer. Examples stringI

0032【Edabit ★☆☆☆☆☆】【每秒帧数】Frames Per Second

0032【Edabit ★☆☆☆☆☆】【每秒帧数】Frames Per Second algorithms language_fundamentals math numbers Instructions Create a function that returns the number of frames shown in a given number of minutes for a c

0032【Edabit ★☆☆☆☆☆】【每秒帧数】Frames Per Second

0032【Edabit ★☆☆☆☆☆】【每秒帧数】Frames Per Second algorithms language_fundamentals math numbers Instructions Create a function that returns the number of frames shown in a given number of minutes for a c

0037【Edabit ★☆☆☆☆☆】【修改Bug 2】Buggy Code (Part 2)

0037【Edabit ★☆☆☆☆☆】【修改Bug 2】Buggy Code (Part 2) bugs language_fundamentals Instructions Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below to get

0001【Edabit ★☆☆☆☆☆】【两数之和】Return the Sum of Two Numbers

Return the Sum of Two Numbers algebra math numbers Instructions Create a function that takes two numbers as arguments and returns their sum. Examples addition(3, 2) // 5 addition(-3, -6) //

0029【Edabit ★☆☆☆☆☆】Profitable Gamble

0029【Edabit ★☆☆☆☆☆】Profitable Gamble conditions math validation Instructions Create a function that takes three arguments prob, prize, pay and returns true if prob * prize > pay; otherwise return

0010【Edabit ★☆☆☆☆☆】Maximum Edge of a Triangle

【Edabit 算法 ★☆☆☆☆☆】Maximum Edge of a Triangle algorithms math numbers Instructions Create a function that finds the maximum range of a triangle’s third edge, where the side lengths are all integers

【Edabit 算法 ★★★★★★】【两个大整数相加】Recursion: Sum of Two Numbers (With A Twist!)

Recursion: Sum of Two Numbers (With A Twist!) Instructions This is an “expert” challenge!!! Why is a sum of two numbers an “expert” challenge!!! Well, the numbers can have 1000 digits or even beyon

【Edabit 算法 ★☆☆☆☆☆】 Correct the Mistakes

【Edabit 算法 ★☆☆☆☆☆】 Correct the Mistakes bugs language_fundamentals algebra Instructions Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below to get

【Edabit 算法 ★☆☆☆☆☆】 Correct the Mistakes

【Edabit 算法 ★☆☆☆☆☆】 Correct the Mistakes bugs language_fundamentals algebra Instructions Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below to get

【Edabit 算法 ★☆☆☆☆☆】 Less Than 100?

【Edabit 算法 ★☆☆☆☆☆】 Less Than 100? language_fundamentals math validation Instructions Given two numbers, return true if the sum of both numbers is less than 100. Otherwise return false. Examples

【Edabit 算法 ★☆☆☆☆☆】 Is the Number Less than or Equal to Zero?

【Edabit 算法 ★☆☆☆☆☆】 Is the Number Less than or Equal to Zero? language_fundametals validation conditions Instructions Create a function that takes a number as its only argument and returns true if

【Edabit 算法 ★☆☆☆☆☆】 Return Something to Me!

【Edabit 算法 ★☆☆☆☆☆】 Return Something to Me! strings language_fundamentals Instructions Write a function that returns the string "something" joined with a space " " and the given argument a. Exam

【Edabit 算法 ★☆☆☆☆☆】 Basic Variable Assignment

【Edabit 算法 ★☆☆☆☆☆】 Basic Variable Assignment bugs functional_programming language_fundametals strings Instructions A student learning JavaScript was trying to make a function. His code should conc

【Edabit 算法 ★☆☆☆☆☆】 Basketball Points

【Edabit 算法 ★☆☆☆☆☆】 Basketball Points language_fundamentals math numbers Instructions You are counting points for a basketball game, given the amount of 2-pointers scored and 3-pointers scored, fin

【Edabit 算法 ★☆☆☆☆☆】Maximum Edge of a Triangle

【Edabit 算法 ★☆☆☆☆☆】Maximum Edge of a Triangle algorithms math numbers Instructions Create a function that finds the maximum range of a triangle’s third edge, where the side lengths are all integers