6 kyu

n times 2 to the power of x

Description:

You are given a function puzzle that accepts 2 positive integers (very important!) in the specified order, n and x, and returns the result of n * Math.pow(2, x). Sounds easy, right? Well, there is only one condition - you must shorten the code so it meets the strict (compiled) character count requirements (without altering how the function behaves for positive integers of course).

Puzzles

Stats:

CreatedJul 13, 2016
PublishedJul 13, 2016
Warriors Trained387
Total Skips3
Total Code Submissions2343
Total Times Completed163
JavaScript Completions163
Total Stars14
% of votes with a positive feedback rating85% of 72
Total "Very Satisfied" Votes52
Total "Somewhat Satisfied" Votes18
Total "Not Satisfied" Votes2
Total Rank Assessments9
Average Assessed Rank
6 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • donaldsebleung Avatar
  • smile67 Avatar
Ad