Preview

Informatics in school

Advanced search

FUNCTIONAL STYLE PROGRAMMING IN JAVASCRIPT: TWO PROBABILITY PROBLEMS

https://doi.org/10.32517/2221-1993-2018-17-7-40-45

Abstract

The article contains detailed explanations for two examples of solving simple probability problems with simulations written in JavaScript using functional programming paradigm. Provided material is designed to be used in teaching introductory level of functional programming in upper secondary school.

About the Author

I. Yu. Travkin
Sakhalin State University.
Russian Federation

Yuzhno-Sakhalinsk.



References

1. Аль-Халили Дж. Парадокс. Девять великих загадок физики. СПб.: Питер, 2017.

2. Стрелочные функции. https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Functions/Arrow_functions

3. Array.prototype.filter(). https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Array/filter

4. Array.prototype.map(). https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Array/map

5. Array.prototype.reduce(). https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce

6. Array.prototype.slice(). https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/Array/slice

7. Crockford D. The World’s Most Misunderstood Programming Language Has Become the World’s Most Popular Programming Language. https://www.crockford.com/javascript/popular.html

8. Dean J., Ghemawat S. MapReduce: simplified data processing on large clusters // Communications of the ACM. 2008. N 51(1). https://www.usenix.org/legacy/publications/library/proceedings/osdi04/tech/full_papers/dean/dean_html/

9. Google Chrome Portable. https://portableapps.com/apps/ internet/google_chrome_portable

10. Jang P. Modern JavaScript Explained For Dinosaurs. https://medium.com/the-node-js-collection/modern-javascriptexplained-for-dinosaurs-f695e9747b70

11. Nakoryakov V. Two Years of Functional Programming in JavaScript: Lessons Learned. https://hackernoon.com/two-years-offunctional-programming-in-javascript-lessons-learned-1851667c726

12. Stat 110 on YouTube. https://projects.iq.harvard.edu/stat110/ youtube


Review

For citations:


Travkin I.Yu. FUNCTIONAL STYLE PROGRAMMING IN JAVASCRIPT: TWO PROBABILITY PROBLEMS. Informatics in school. 2018;(7):40-45. (In Russ.) https://doi.org/10.32517/2221-1993-2018-17-7-40-45

Views: 291


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.


ISSN 2221-1993 (Print)