Category Archives: Programming

Programming Problem Solve with Python:

Problem: Only Positive Numbers

positiveFunc([-5,3,-1,101])

 

R programming

R:

Manipulation of Vectors and Numbers
Vectors and Assignment
Extraction of Elements from VectorsMatrices
Basic Manipulations
The Data Frame
Table
Frames
Cumulative Distribution Function
Measures of Central Tendency
Measures of Spread
Correlation[Ektu dekhte hobe]

 

 

Pyhton as a new beginning

Same output but the code is in diffrent approach.

 

 

Loop Over Integer Colors

 

Python Course Started, Alhamdulillah

The Python Mega Course: Build 10 Real World Applications

Bismillahir Rahmanir Rahim. I am exploring this course for growing interest in my career:

Summary: Integers, Floats, Lists, Dictionaries, Tuples, dir, help

In this section you learned that:

  • Integers are for representing whole numbers:
  1. rank = 10
  2. eggs = 12
  3. people = 3
  • Floats represent continuous values:
  1. temperature = 10.2
  2. rainfall = 5.98
  3. elevation = 1031.88
  • Strings represent any text:
  1. message = “Welcome to our online shop!”
  2. name = “John”
  3. serial = “R001991981SW”
  • Lists represent arrays of values that may change during the course of the program:
  1. members = [“Sim Soony”, “Marry Roundknee”, “Jack Corridor”]
  2. pixel_values = [252, 251, 251, 253, 250, 248, 247]
  • Dictionaries represent pairs of keys and values:
  1. phone_numbers = {“John Smith”: “+37682929928”, “Marry Simpons”: “+423998200919”}
  2. volcano_elevations = {“Glacier Peak”: 3213.9, “Rainer”: 4392.1}
  • Keys of a dictionary can be extracted with:
  1. phone_numbers.keys()
  • Values of a dictionary can be extracted with:
  1. phone_numbers.values()
  • Tuples represent arrays of values that are not to be changed during the course of the program:
  1. vowels = (‘a’, ‘e’, ‘i’, ‘o’, ‘u’)
  2. one_digits = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
  • To find out what attributes a type has:
  1. dir(str)
  2. dir(list)
  3. dir(dict)
  • To find out what Python builtin functions there are:
  1. dir(__builtins__)
  • Documentation for a Python command can be found with:
  1. help(str)
  2. help(str.replace)
  3. help(dict.values)

JavaScript Code Finally Bujha

 

 

Code:

 

What is this keyword in OOP

What is “this”?

You may have noticed something slightly strange in our methods. Look at this one for example:

You are probably wondering what “this” is. The this keyword refers to the current object the code is being written inside — so in this case this is equivalent to person.

JavaScript OOP Paradigm Clear

https://www.freecodecamp.org/news/an-introduction-to-object-oriented-programming-in-javascript-8900124e316a/

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics

 

Event Listeners andGetters in JavaScript

 

 

 

JS Arrow Function

 

R programming

OOP in JavaScript

Machine Learning Library for JavaScript

https://towardsdatascience.com/top-javascript-machine-learning-libraries-in-2019-cb63b95bdd10

JavaScript Codes

Js Infinity Code:

toString() methods in JavaScript

toString() methd also convert number to string

var x=9.656;
x.toExponential(2); //returns 9.66+0
x.toExponential(4); //returns 9.6560e+0
x.toExponential(6);//returns 9.656000e+0

var x=9.656;
x.toFixed(0); //returns 10
x.toFixed((4); //returns 9.66
x.toFixed(6); //returns 9.656000

 

var x=9.656
MAX_VALUE
MIN_VALUE
POSITIVE_INFINITY
NEGATIVE_INFINITY
NaN=”Not a Number” value

Output:

 

 

//Sort the  elements of the array alphabetically

 

Js Run in Console and Array Sort;

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort

JavaScript learning also good site:

https://javascript.info/

https://www.w3schools.com/js

https://guide.freecodecamp.org/javascript/additional-javascript-resources