The javascript silo?



  • What programmes (or ide) that would have been received at the js file entrance and handed it out on the way out in a structured coding standard.

    Let's say there's a file where there's a lot of writing functions. And I'd like to level them so they look the same as to make the variables deviate the same (e.g. four breaks from the start of the line, the same location of the tagged brackets, et. d).

    function play_sound(file , volume) {
       var audioElement = document.createElement('audio');
            audioElement.setAttribute('src', file);
            audioElement.setAttribute('autoplay', 'autoplay');
            audioElement.volume= volume;
            audioElement.play();
    }
    

    function play_sound (file , volume)

                 {
    

    var audioElement = document.createElement('audio');
    audioElement.setAttribute('src', file);
    audioElement.setAttribute('autoplay', 'autoplay');
    audioElement.volume= volume;
    audioElement.play();
    }



  • Style inspection and automatic correction: jscs from Yandex.

    Checking the correct writing of the code: jshint




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2