Skip to content

Coding Style #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Nov 17, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some minor change in solution.md
  • Loading branch information
AshiqueImran committed Nov 9, 2019
commit ae3f39fb7ef54ea2ed349f90015080def9fc981c
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
নিচের বিষয়গুলি টুকে রাখতে পারেন:

```js no-beautify
function pow(x,n) // <- আর্গুমেন্টের মাঝে ফাঁকা থাকে না
function pow(x,n) // <- আর্গুমেন্টেগুলোর মাঝে ফাঁকা নেই
{ // <- আলাদা লাইনে ব্যাকেট লিখা
let result=1; // <- সমান এর = আগে / পরে ফাঁকা নয়
for(let i=0;i<n;i++) {result*=x;} // <- no spaces
let result=1; // <- সমান এর = আগে / পরে ফাঁকা নেই
for(let i=0;i<n;i++) {result*=x;} // <- ফাঁকা নেই
// কন্টেন্ট { ... } আলাদা লাইনে লিখা উচিৎ
return result;
}

let x=prompt("x?",''), n=prompt("n?",'') // <-- টেকনিক্যালি সম্ভব,
// কিন্তু ২ লাইনে লিখা ভালো, এছাড়াও কোন ফাঁকা নেই এবং সেলিকোমন (;) নেই
if (n<0) // <- কোন ফাঁকা নেই (n < 0), এবং উপড়ে কোন বাড়তি লাইন থাকা উচিৎ নয়
if (n<0) // <- ভেতরে কোন ফাঁকা নেই (n < 0), এবং উপড়ে কোন বাড়তি লাইন থাকা উচিৎ নয়
{ // <- আলাদা মাইলে ব্যাকেট
// নিচে- বড় লাইনগূলি কিছু খন্ডে ভাগ করে নিতে পারেন পাঠযোগ্যতা বাড়াতে।
alert(`Power ${n} is not supported, please enter an integer number greater than zero`);
Expand Down